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

Bin Meng bmeng.cn at gmail.com
Sat Oct 8 06:23:39 CEST 2016


On Thu, Oct 6, 2016 at 10:42 AM, Simon Glass <sjg at chromium.org> 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 <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v2: None
>
>  lib/strto.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list