From: Felix Fietkau Date: Thu, 2 Oct 2008 18:19:02 +0000 (+0000) Subject: mtd: fix image check on non-broadcom platforms X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8f567ff7289153d6f16dac251f404f30f6aa14ac;p=openwrt%2Fstaging%2Fthess.git mtd: fix image check on non-broadcom platforms SVN-Revision: 12825 --- 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