[U-Boot] [U-Boot, v3, 1/2] dm: device: fail uclass_find_first_device() if list_empty

Tom Rini trini at konsulko.com
Sun Feb 10 13:10:26 UTC 2019

On Fri, Feb 01, 2019 at 04:01:07PM +0100, Marcel Ziswiler wrote:

> From: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> 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 at toradex.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190210/6fa0533d/attachment.sig>

More information about the U-Boot mailing list