Re: [PATCH v2 08/14] lib: Move common digit-parsing code into a function

2021-08-02 Thread Tom Rini
On Sat, Jul 24, 2021 at 09:03:35AM -0600, Simon Glass wrote: > 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 Applied to u-boot/master, than

[PATCH v2 08/14] lib: Move common digit-parsing code into a function

2021-07-24 Thread Simon Glass
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 --- (no changes since v1) lib/strto.c | 31 --- 1 file changed, 24 inser