From ef365cc9ad919f9ea00d3b40c2911350bab213cb Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 3 Oct 2010 02:20:32 +0800 Subject: osmocom.c: rc is not assigned and contains garbage, return 0. --- src/host/osmocon/osmocon.c | 4 ++-- 1 file 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) -- cgit v1.2.3