Skip to content
Commit 96b23440 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 18546f29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment