X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/64c023294fb2524bbb2a0839732a7f4e48cd6f5f..5b4bdb577c773dd763e13a8bf934683fdbf524fa:/package/mtd/src/mtd.c diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index 3e84fd696..761139f4e 100644 --- a/package/mtd/src/mtd.c +++ b/package/mtd/src/mtd.c @@ -276,10 +276,8 @@ mtd_write(int imagefd, const char *mtd) } } - if (r == 0) { - fprintf(stderr, "No more data left\n"); + if (r == 0) break; - } buflen += r; } while (buflen < erasesize);