mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 18:14:04 +02:00
mtd: fix image check on non-broadcom platforms
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12825 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7e8f0bc28d
commit
64c023294f
@ -138,7 +138,7 @@ int mtd_write_buffer(int fd, const char *buf, int offset, int length)
|
|||||||
static int
|
static int
|
||||||
image_check(int imagefd, const char *mtd)
|
image_check(int imagefd, const char *mtd)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 1;
|
||||||
#ifdef target_brcm
|
#ifdef target_brcm
|
||||||
ret = trx_check(imagefd, mtd, buf, &buflen);
|
ret = trx_check(imagefd, mtd, buf, &buflen);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user