util/nvmutil: don't usleep on file reads

i don't care. it's only 30 tries.

usleep can fail, setting errno, and it can actually
take longer, depending on the environment. it poisons
errno, and makes debugging harder.

just remove it.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-04 01:29:04 +00:00
parent e28409d80b
commit ca98d418d5
-3
View File
@@ -448,9 +448,6 @@ check_read_or_die(const char *rpath, ssize_t rval, size_t rsize,
err(EINTR, "%s: max retries exceeded on file: %s",
readtype, rpath);
/* Prevent CPU hog when on spin-locked reads. */
usleep(1);
/*
* Bad read, with errno EINTR (syscall interrupted).
* Reset the error state and try again.