aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-02 18:19:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-02 18:19:02 +0000
commit49cdf61961eae2d5b688cd10f11f89029fb2c01f (patch)
treeb2aa14ffcf3103f0e51b44e8e931a70e896c53da /package
parent3eeaccee0305164ecb9a9ddba391ad9538fcaa68 (diff)
downloadupstream-49cdf61961eae2d5b688cd10f11f89029fb2c01f.tar.gz
upstream-49cdf61961eae2d5b688cd10f11f89029fb2c01f.tar.bz2
upstream-49cdf61961eae2d5b688cd10f11f89029fb2c01f.zip
mtd: fix image check on non-broadcom platforms
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12825 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mtd/src/mtd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index b180aecfb9..3e84fd696e 100644
--- a/package/mtd/src/mtd.c
+++ b/package/mtd/src/mtd.c
@@ -138,7 +138,7 @@ 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;
+ int ret = 1;
#ifdef target_brcm
ret = trx_check(imagefd, mtd, buf, &buflen);
#endif