From d5b18e7d0c931d940db9f12732023d9d64837c55 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 26 Mar 2026 04:48:30 +0000 Subject: nvmutil: remove errno handle in hextonum Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/num.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'util/libreboot-utils') 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; } -- cgit v1.2.1