summaryrefslogtreecommitdiff
path: root/util
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 04:48:30 +0000
commitd5b18e7d0c931d940db9f12732023d9d64837c55 (patch)
tree78d4f97e723b7ebbae9caf636d84c080438091c3 /util
parentd3cd277474ad17c591db5868aa16e1f84c891f01 (diff)
nvmutil: remove errno handle in hextonum
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-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;
}