util/nvmutil: remove unnecessary check

we can just use errval as argument to set_err,
because set_err itself now properly handles
errno, ensuring that is is never set to zero.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-03 20:30:52 +00:00
parent 418015c232
commit af5d876bf0
+1 -1
View File
@@ -603,7 +603,7 @@ err(int errval, const char *msg, ...)
vfprintf(stderr, msg, args);
va_end(args);
set_err(errval ? errval : ECANCELED);
set_err(errval);
fprintf(stderr, ": %s", strerror(errno));
fprintf(stderr, "\n");