nvmutil: remove errno handle in hextonum

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-26 04:48:30 +00:00
parent 5e049df024
commit f7bd4b9472
-3
View File
@@ -30,7 +30,6 @@ hextonum(char ch_s)
unsigned char ch; unsigned char ch;
size_t rval; size_t rval;
errno = 0;
ch = (unsigned char)ch_s; ch = (unsigned char)ch_s;
@@ -51,8 +50,6 @@ hextonum(char ch_s)
if (ch == '?' || ch == 'x') { if (ch == '?' || ch == 'x') {
rset(&rval, sizeof(rval)); rset(&rval, sizeof(rval));
if (errno > 0)
goto err_hextonum;
goto hextonum_success; goto hextonum_success;
} }