util/nvmutil: clearer errno reset in valid_read

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-03 22:57:45 +00:00
parent 3268c225d6
commit 7a62ad3f62
+2 -1
View File
@@ -391,7 +391,8 @@ valid_read(const char *rpath, ssize_t rval, size_t rsize, int retry)
if (retry == MAX_RETRY_READ - 1)
err(EINTR, "read: max retries exceeded: %s", rpath);
return (errno = 0);
errno = 0;
return 0;
}
static int