]> git.sur5r.net Git - u-boot/commit
test: wdt: Add a check that dev is not NULL
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:43 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:09 +0000 (08:38 -0400)
commit9eace7f59ee4a37a678e4b57dc3fe532283f9226
tree4458e22cb986868ab2d00325caea60502cf51577
parent9f95267271c0b6cff64c5ac1b308e1e0281e9e3a
test: wdt: Add a check that dev is not NULL

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 <sjg@chromium.org>
Reported-by: Coverity (CID: 163247)
Fixes: 0753bc2 (dm: Simple Watchdog uclass)
test/dm/wdt.c