From: Simon Glass Date: Thu, 5 May 2016 13:28:21 +0000 (-0600) Subject: fdt: Correct return value in fdtdec_decode_display_timing() X-Git-Tag: v2016.07-rc2~41^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=04b9dd10cc11e4f603a2bae9cf4cc21af1229534;p=u-boot fdt: Correct return value in fdtdec_decode_display_timing() 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 Reviewed-by: Andreas Bießmann --- diff --git a/lib/fdtdec.c b/lib/fdtdec.c index ab002e9fa3..686b89da38 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1170,7 +1170,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)