From: Tom Rini Date: Mon, 12 Jun 2017 18:43:18 -0400 Subject: [U-Boot] [U-Boot, 01/10] test: pwm: Add a check that dev is not NULL In-Reply-To: <20170607162847.16971-2-sjg@chromium.org> References: <20170607162847.16971-2-sjg@chromium.org> Message-ID: <20170612224318.GN10782@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:38AM -0600, Simon Glass wrote: > We know that uclass_get_device() does not return NULL for dev when it > succeeds but coverity does not. Add an extra check to hopefully keep it > happy. > > Signed-off-by: Simon Glass > Reported-by: Coverity (CID: 161690) > Fixes: 43b4156 (dm: sandbox: pwm: Add a basic pwm test) 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: