From 64c023294fb2524bbb2a0839732a7f4e48cd6f5f Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 2 Oct 2008 18:19:02 +0000 Subject: mtd: fix image check on non-broadcom platforms git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12825 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mtd/src/mtd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/mtd') diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index b180aecfb..3e84fd696 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 -- cgit v1.2.3