commit | 8be8eab68706c93ff6f369d515d972ce3037b33f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Jul 24 09:03:32 2021 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 02 13:32:14 2021 -0400 |
tree | 468fe008d651886455b680de0376a01b7fdee160 | |
parent | f0722ed5bb4042eb88f6f95652bb68be28173327 [diff] |
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>