projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0e7c7b
)
mtd: fix image check on non-broadcom platforms
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 2 Oct 2008 18:19:02 +0000
(18:19 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 2 Oct 2008 18:19:02 +0000
(18:19 +0000)
SVN-Revision: 12825
package/mtd/src/mtd.c
patch
|
blob
|
history
diff --git
a/package/mtd/src/mtd.c
b/package/mtd/src/mtd.c
index b180aecfb9433d452e8adb5b9e70489f4f780c06..3e84fd696e35b89c869d2f6bd27201686c73d7cf 100644
(file)
--- 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