Skip to content
Snippets Groups Projects
Commit 4f414d39 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

test: bus: Add a check that dev is not NULL


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: default avatarSimon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 163246)
Fixes: 0753bc2d (dm: Simple Watchdog uclass)
parent 9eace7f5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment