Skip to content
Commit f3885649 authored by Marcel Ziswiler's avatar Marcel Ziswiler Committed by Tom Rini
Browse files

dm: device: fail uclass_find_first_device() if list_empty



While uclass_find_device() fails with -ENODEV in case of list_empty
strangely uclass_find_first_device() returns 0.

Fix uclass_find_first_device() to also fail with -ENODEV instead.

Signed-off-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent a765adc0
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