summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-04 01:39:34 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-04 01:39:34 +0000
commit84b4ba48b42279b434633596d899ad8f1dcbc0ab (patch)
tree078dedaf5785823e6dc316ea7d60c03b56d72cbb /util
parent94415ca73dac1c73605d377425faa045e9c86d23 (diff)
util/nvmutil: don't reset errno in check_read_or_die
we want to debug it after the fact; this is now handled, in the calling functions (unhandled error exceptions). Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index f32ba7ea..749ed0bc 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -450,9 +450,7 @@ check_read_or_die(const char *rpath, ssize_t rval, size_t rsize,
/*
* Bad read, with errno EINTR (syscall interrupted).
- * Reset the error state and try again.
*/
- errno = 0;
return 0;
}