summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--otafault/ota_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/otafault/ota_io.cpp b/otafault/ota_io.cpp
index a37804088..9434ebea3 100644
--- a/otafault/ota_io.cpp
+++ b/otafault/ota_io.cpp
@@ -189,8 +189,8 @@ int ota_fsync(int fd) {
&& FilenameCache[fd] == FaultFileName) {
FaultFileName = "";
errno = EIO;
- return -1;
have_eio_error = true;
+ return -1;
} else {
int status = fsync(fd);
if (status == -1 && errno == EIO) {