[PATCH v2 05/14] lib: Drop unnecessary check for hex digit

Tom Rini trini at konsulko.com
Mon Aug 2 19:51:43 CEST 2021


On Sat, Jul 24, 2021 at 09:03:32AM -0600, Simon Glass wrote:

> 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 at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210802/8d35d8e6/attachment.sig>


More information about the U-Boot mailing list