mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
util/nvmutil: minor cleanup: rw_file_once
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -1587,9 +1587,10 @@ rw_file_once(int fd, uint8_t *mem, size_t len,
|
||||
read_again:
|
||||
rv = do_rw(fd, mem + rc, len - rc, off + rc, rw_type);
|
||||
|
||||
if (rv < 0 && errno == EINTR) {
|
||||
if (rv < 0 && errno == EINTR)
|
||||
goto read_again;
|
||||
} else if (rv < 0) {
|
||||
|
||||
if (rv < 0) {
|
||||
errno = EIO;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user