[MERGED] osmocom-bb[master]: osmocon.c: strip unused variable

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Wed May 24 23:11:00 UTC 2017


Vadim Yanitskiy has submitted this change and it was merged.

Change subject: osmocon.c: strip unused variable
......................................................................


osmocon.c: strip unused variable

Change-Id: I295785295c108798e0c235e78bd8fd8f3c585d16
---
M src/host/osmocon/osmocon.c
1 file changed, 2 insertions(+), 3 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index 648d416..76f6037 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -497,8 +497,7 @@
 
 static int mtk_prepare_block(void)
 {
-	int rc, i;
-
+	int i;
 	int remaining_bytes;
 	int fill_bytes;
 	uint8_t *block_data;
@@ -565,7 +564,7 @@
 	dnload.block_ptr = dnload.block;
 
 	dnload.block_number++;
-	return rc;
+	return 0;
 }
 
 static int handle_write_block(void)

-- 
To view, visit https://gerrit.osmocom.org/2657
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I295785295c108798e0c235e78bd8fd8f3c585d16
Gerrit-PatchSet: 2
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list