From: Tom Rini Date: Mon, 12 Jun 2017 18:43:32 -0400 Subject: [U-Boot] [U-Boot, 04/10] fdt: Add a check to do_fdt() for coverity In-Reply-To: <20170607162847.16971-5-sjg@chromium.org> References: <20170607162847.16971-5-sjg@chromium.org> Message-ID: <20170612224332.GQ10782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jun 07, 2017 at 10:28:41AM -0600, Simon Glass wrote: > We know that fdt_getprop() does not return NULL when len is > 0 but > coverity does not. Add an extra check to keep it happy. > > Signed-off-by: Simon Glass > Reported-by: Coverity (CID: 163249) > Fixes: bc80295b (fdt: Add get commands to fdt) Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: