mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
nvmutil: remove errno handle in hextonum
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user