Skip to content
Commit 4954937d authored by Michal Suchanek's avatar Michal Suchanek Committed by Simon Glass
Browse files

dm: treewide: Do not use the return value of simple uclass iterator



uclass_first_device/uclass_next_device return value will be removed,
don't use it.

With the current implementation dev is equivalent to !ret. It is
redundant to check both, ret check can be replaced with dev check, and
ret check inside the iteration is dead code.

Signed-off-by: default avatarMichal Suchanek <msuchanek@suse.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent aa5511e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment