summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-26 04:48:30 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:42 +0000
commitf7bd4b9472261e6fdc792de2adca4172b46e91bf (patch)
treec21561c4a246d656614f8ebfca25535c8d1b3dd9 /util/libreboot-utils/lib
parent5e049df024bec542d15468470f86feb9de558b8e (diff)
nvmutil: remove errno handle in hextonum
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib')
-rw-r--r--util/libreboot-utils/lib/num.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/util/libreboot-utils/lib/num.c b/util/libreboot-utils/lib/num.c
index 53ba4ccb..79d6b409 100644
--- a/util/libreboot-utils/lib/num.c
+++ b/util/libreboot-utils/lib/num.c
@@ -30,7 +30,6 @@ hextonum(char ch_s)
unsigned char ch;
size_t rval;
- errno = 0;
ch = (unsigned char)ch_s;
@@ -51,8 +50,6 @@ hextonum(char ch_s)
if (ch == '?' || ch == 'x') {
rset(&rval, sizeof(rval));
- if (errno > 0)
- goto err_hextonum;
goto hextonum_success;
}