summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-14 01:03:18 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-14 01:03:18 +0000
commit3cb7508ec7dcbc715c1c1bf9452bb7e0ad5ff8c1 (patch)
tree9d9b7d8976a9b1b14eb719320e382cc46e606387 /util
parent8d6b28fcf7fd0e347ad1c7fe2982aef7309b0ab8 (diff)
util/nvmutil: fix lseek eintr err check
it should be is equal, not not equal Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 625e1aaa..75234fc7 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -1822,14 +1822,13 @@ static off_t
lseek_eintr(int fd, off_t off, int whence,
int loop_eagain, int loop_eintr)
{
- off_t old;
+ off_t old = -1;
do {
old = lseek(fd, off, whence);
- } while (old == (off_t)-1
- && (!(
+ } while (old == (off_t)-1 && (
errno == try_err(loop_eintr, EINTR) ||
- errno == try_err(loop_eagain, EAGAIN))));
+ errno == try_err(loop_eagain, EAGAIN)));
return old;
}