From d61f9f7f88be6f61e0b1ba77349730b4f1559be8 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 14 Mar 2026 19:18:23 +0000 Subject: nvmutil: fix redundant check we already check not-zero in the next if Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/nvmutil/nvmutil.c') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 2b7a23c5..38ecc472 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -2217,7 +2217,7 @@ err(int nvm_errval, const char *msg, ...) { va_list args; - if (errno <= 0) + if (errno < 0) errno = ECANCELED; if (!errno) errno = nvm_errval; -- cgit v1.2.1