[U-Boot] [PATCH v2 17/18] fdt: Correct return value in fdtdec_decode_display_timing()

Andreas Bießmann andreas at biessmann.org
Sat Jun 4 22:14:08 CEST 2016


On 05.05.16 15:28, Simon Glass wrote:
> This should return a non-zero value if there is a missing property. Update
> the return value accordingly. The only expected error is -FDT_ERR_NOTFOUND.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Reviewed-by: Andreas Bießmann <andreas at biessmann.org>

> ---
> 
> Changes in v2: None
> 
>  lib/fdtdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index 70acc29..9782c93 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -1169,7 +1169,7 @@ int fdtdec_decode_display_timing(const void *blob, int parent, int index,
>  	if (fdtdec_get_bool(blob, node, "doubleclk"))
>  		dt->flags |= DISPLAY_FLAGS_DOUBLECLK;
>  
> -	return 0;
> +	return ret;
>  }
>  
>  int fdtdec_setup(void)
> 


More information about the U-Boot mailing list