summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-03 02:20:32 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-03 02:20:32 +0800
commitef365cc9ad919f9ea00d3b40c2911350bab213cb (patch)
tree66e37743373b75af9743fbd4944d3abf338df3d9
parentef9298d9153f925f0c63fc0708d8695240fbe29c (diff)
osmocom.c: rc is not assigned and contains garbage, return 0.
-rw-r--r--src/host/osmocon/osmocon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index 9d592207..024697d7 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -463,7 +463,7 @@ static void hexdump(const uint8_t *data, unsigned int len)
static int romload_prepare_block(void)
{
- int rc, i;
+ int i;
int block_checksum = 5;
int remaining_bytes;
@@ -534,7 +534,7 @@ static int romload_prepare_block(void)
dnload.block_number++;
dnload.serial_fd.when = BSC_FD_READ | BSC_FD_WRITE;
- return rc;
+ return 0;
}
static int mtk_prepare_block(void)