From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Andreas_Bie=c3=9fmann?= Date: Sat, 4 Jun 2016 22:14:08 +0200 Subject: [U-Boot] [PATCH v2 17/18] fdt: Correct return value in fdtdec_decode_display_timing() In-Reply-To: <1462454902-6093-18-git-send-email-sjg@chromium.org> References: <1462454902-6093-1-git-send-email-sjg@chromium.org> <1462454902-6093-18-git-send-email-sjg@chromium.org> Message-ID: <359d738e-2779-655d-a49c-104c7d1f740a@biessmann.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Andreas Bie?mann > --- > > 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) >