mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user