]> git.ipfire.org Git - thirdparty/u-boot.git/commit
lib: Move common digit-parsing code into a function
authorSimon Glass <sjg@chromium.org>
Sat, 24 Jul 2021 15:03:35 +0000 (09:03 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 2 Aug 2021 17:32:14 +0000 (13:32 -0400)
commit5a94546e1cb302842aa0f65be0bb3585fd010ccd
tree4cb611c1f330fd6d38be15e6cd13051540a2c03d
parentab833ef60a13b60bfa8e236ca774e91b22255a5a
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: Simon Glass <sjg@chromium.org>
lib/strto.c