]> git.baikalelectronics.ru Git - uboot.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)
commit6adeaea6d45aedc3ad518f7af687a78bbab51c2a
tree4cb611c1f330fd6d38be15e6cd13051540a2c03d
parent12abea52a301baae6a721643c81d12c3f504b676
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