diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 19:18:23 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | 4a3951a4d983cbfa7605152add898ebb0c17f64e (patch) | |
| tree | 72ba0dec2a2fb745c22bdfd4c1152b44fa0181d2 | |
| parent | a3354d2598d1bf6ffe44fc855d581b143388961c (diff) | |
nvmutil: fix redundant check
we already check not-zero in the next if
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
