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

lib: Move common digit-parsing code into a function



The code to convert a character into a digit is repeated twice in this
file. Factor it out into a separate function. This also makes the code a
little easier to read.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ab833ef6
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