projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a menuconfig option for enabling KALLSYMS for the kernel
[openwrt.git]
/
package
/
mtd
/
src
/
mtd.c
diff --git
a/package/mtd/src/mtd.c
b/package/mtd/src/mtd.c
index
6e430f4
..
761139f
100644
(file)
--- a/
package/mtd/src/mtd.c
+++ b/
package/mtd/src/mtd.c
@@
-138,9
+138,11
@@
int mtd_write_buffer(int fd, const char *buf, int offset, int length)
static int
image_check(int imagefd, const char *mtd)
{
static int
image_check(int imagefd, const char *mtd)
{
+ int ret = 1;
#ifdef target_brcm
#ifdef target_brcm
- ret
urn
trx_check(imagefd, mtd, buf, &buflen);
+ ret
=
trx_check(imagefd, mtd, buf, &buflen);
#endif
#endif
+ return ret;
}
static int mtd_check(const char *mtd)
}
static int mtd_check(const char *mtd)
@@
-274,10
+276,8
@@
mtd_write(int imagefd, const char *mtd)
}
}
}
}
- if (r == 0) {
- fprintf(stderr, "No more data left\n");
+ if (r == 0)
break;
break;
- }
buflen += r;
} while (buflen < erasesize);
buflen += r;
} while (buflen < erasesize);
This page took
0.024304 seconds
and
4
git commands to generate.