From 4bfb8fd7967fa65b2ef1ce7b19100c9935b3edae Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 2 Oct 2008 18:32:16 +0000 Subject: [PATCH] sync 8.09 with r12827 SVN-Revision: 12828 --- package/mtd/src/mtd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index 3e84fd696e..761139f4e7 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); -- 2.30.2