commit | ac855529f1769ed3647d65cf62344c760ada9d1b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Jun 07 10:28:44 2017 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Jun 12 08:38:10 2017 -0400 |
tree | b224d8442f1822a9c260f9d14e9b56ffe3fc0224 | |
parent | 2e8faa21f7dc7bf119425492efc24c9d63a7cb71 [diff] |
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: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 163246) Fixes: 0753bc2 (dm: Simple Watchdog uclass)