[U-Boot] [U-Boot, 07/10] test: bus: Add a check that dev is not NULL

Tom Rini trini at konsulko.com
Mon Jun 12 22:43:44 UTC 2017


On Wed, Jun 07, 2017 at 10:28:44AM -0600, Simon Glass wrote:

> We know that uclass_get_device() and device_find_child_by_of_offset() do
> not return NULL for dev when they succeeds but coverity does not. Add an
> extra check to hopefully keep it happy.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reported-by: Coverity (CID: 163246)
> Fixes: 0753bc2 (dm: Simple Watchdog uclass)

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170612/c107cfdb/attachment.sig>


More information about the U-Boot mailing list