aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--external/pflash/pflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
index 381df24..a5e7bc3 100644
--- a/external/pflash/pflash.c
+++ b/external/pflash/pflash.c
@@ -511,7 +511,7 @@ static int do_read_file(struct blocklevel_device *bl, const char *file,
}
progress_end();
close(fd);
- return rc;
+ return size ? rc : 0;
}
static int enable_4B_addresses(struct blocklevel_device *bl)