projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix some warnings
[openwrt/openwrt.git]
/
package
/
mtd
/
src
/
mtd.c
diff --git
a/package/mtd/src/mtd.c
b/package/mtd/src/mtd.c
index 6e430f4b5fd94df7947efa1f7c00b9d7df4082b5..b180aecfb9433d452e8adb5b9e70489f4f780c06 100644
(file)
--- 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
- ret
urn
trx_check(imagefd, mtd, buf, &buflen);
+ ret
=
trx_check(imagefd, mtd, buf, &buflen);
#endif
+ return ret;
}
static int mtd_check(const char *mtd)