1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-31 10:26:10 +01:00
Files
u-boot-megous/test/dm/core.c
Marcel Ziswiler f388564965 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: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-02-09 07:51:00 -05:00

24 KiB