summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/mtd/src/mtd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index 3e84fd6..761139f 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);