diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 19:18:23 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-14 19:18:23 +0000 |
| commit | d61f9f7f88be6f61e0b1ba77349730b4f1559be8 (patch) | |
| tree | 2c35204bc24061beb8c5bb109696c9d88c6be680 | |
| parent | 6e21b2cd44a8ff72c4ddfec3d49d8a983199a3a4 (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; |
