mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: clearer errno reset in valid_read
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user