]> git.sur5r.net Git - u-boot/commit
test: pwm: Add a check that dev is not NULL
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:38 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:06 +0000 (08:38 -0400)
commit1a596c44c0967b3191ee278f988d14d6082249e1
tree1f5910e49915ee939de3e01145af83cfd0f7cbd3
parent502589777416aaee32e4ba1682c6eb3aa3a88e1c
test: pwm: 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: 161690)
Fixes: 43b4156 (dm: sandbox: pwm: Add a basic pwm test)
test/dm/pwm.c