mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
mtd: fix image check on non-broadcom platforms
SVN-Revision: 12825
This commit is contained in:
parent
b0e7c7ba79
commit
8f567ff728
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user