From 84b4ba48b42279b434633596d899ad8f1dcbc0ab Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 4 Mar 2026 01:39:34 +0000 Subject: 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 --- util/nvmutil/nvmutil.c | 2 -- 1 file changed, 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; } -- cgit v1.2.1