aboutsummaryrefslogtreecommitdiffstats
path: root/package/mtd/src/mtd.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-25 18:24:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-25 18:24:53 +0000
commita38c409d6a9b2656d7efb469fb9c93d9c4112897 (patch)
tree4320998a3db694698480d9ea738d75b81793e448 /package/mtd/src/mtd.c
parent5a0a3cbc0016743e4092b7b21b3f6fddf63a8bde (diff)
downloadupstream-a38c409d6a9b2656d7efb469fb9c93d9c4112897.tar.gz
upstream-a38c409d6a9b2656d7efb469fb9c93d9c4112897.tar.bz2
upstream-a38c409d6a9b2656d7efb469fb9c93d9c4112897.zip
fix some warnings
SVN-Revision: 12707
Diffstat (limited to 'package/mtd/src/mtd.c')
-rw-r--r--package/mtd/src/mtd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index 6e430f4b5f..b180aecfb9 100644
--- a/package/mtd/src/mtd.c
+++ b/package/mtd/src/mtd.c
@@ -138,9 +138,11 @@ int mtd_write_buffer(int fd, const char *buf, int offset, int length)
static int
image_check(int imagefd, const char *mtd)
{
+ int ret = 0;
#ifdef target_brcm
- return trx_check(imagefd, mtd, buf, &buflen);
+ ret = trx_check(imagefd, mtd, buf, &buflen);
#endif
+ return ret;
}
static int mtd_check(const char *mtd)