Re: [U-Boot] [PATCH v2 03/12] Fix return value in trailing_strtoln()

2016-10-07 Thread Bin Meng
On Thu, Oct 6, 2016 at 10:42 AM, Simon Glass wrote: > This function should return -1 if there is no trailing integer in the > string. Instead it returns 0. Fix it by checking for this condition at the > start. > > Signed-off-by: Simon Glass > Reviewed-by:

[U-Boot] [PATCH v2 03/12] Fix return value in trailing_strtoln()

2016-10-05 Thread Simon Glass
This function should return -1 if there is no trailing integer in the string. Instead it returns 0. Fix it by checking for this condition at the start. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None lib/strto.c | 8 +--- 1