nvmutil: fix redundant check

we already check not-zero in the next if

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-14 19:18:23 +00:00
parent 6e21b2cd44
commit d61f9f7f88

View File

@@ -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;