lib: Drop unnecessary check for hex digit
authorSimon Glass <sjg@chromium.org>
Sat, 24 Jul 2021 15:03:32 +0000 (09:03 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 2 Aug 2021 17:32:14 +0000 (13:32 -0400)
commit96b23440c1b74cd95022e3ebb08a60fedb04f3b9
tree468fe008d651886455b680de0376a01b7fdee160
parent18546f2982bc2032276759530328725ec4561454
lib: Drop unnecessary check for hex digit

If we see 0x then we can assume this is the start of a hex value. It
does not seem necessary to check for a hex digit after that since it will
happen when parsing the value anyway.

Drop this check to simplify the code and reduce size. Add a few more test
cases for when a 0x prefix is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/strto.c
test/str_ut.c