summaryrefslogtreecommitdiff
path: root/util/nvmutil/lib
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-19 07:43:43 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:42 +0000
commitd9f2aff95cb63ad13085e6abd49a75064cd61657 (patch)
treec9c1fc7888d97b7d2f32506e04ba9a28b85b196c /util/nvmutil/lib
parent81ac8eead9971d365c64c10eb6ccb6adb0ae0ece (diff)
nvmutil: don't have finite eintr wait
this is technically incorrect. we don't control faults in the hardware. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/lib')
-rw-r--r--util/nvmutil/lib/file.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/util/nvmutil/lib/file.c b/util/nvmutil/lib/file.c
index d9ec3011..338f3837 100644
--- a/util/nvmutil/lib/file.c
+++ b/util/nvmutil/lib/file.c
@@ -606,12 +606,6 @@ prw(int fd, void *mem, unsigned long nrw,
int loop_eagain, int loop_eintr,
int off_reset)
{
-#ifndef MAX_EAGAIN_RETRIES
- unsigned long retries = 100000;
-#else
- unsigned long retries = MAX_EAGAIN_RETRIES;
-#endif
-
long r;
int positional_rw;
struct stat st;
@@ -740,8 +734,7 @@ real_pread_pwrite:
} while (r == -1 &&
(errno == try_err(loop_eintr, EINTR) ||
- errno == try_err(loop_eagain, EAGAIN)) &&
- retries++ < MAX_EAGAIN_RETRIES);
+ errno == try_err(loop_eagain, EAGAIN)));
}
saved_errno = errno;