]> git.baikalelectronics.ru Git - uboot.git/commit
dm: treewide: Do not use the return value of simple uclass iterator
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:58:08 +0000 (21:58 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 29 Oct 2022 13:36:33 +0000 (07:36 -0600)
commitaf278c611f514e42ae527e7b801123d04e71d86b
tree7176fea63bf97553b10dbc57b225886476f81309
parent0ef2097513585bce3e3f858c7936d0859a940d7d
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: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/virtio.c
drivers/dma/dma-uclass.c
drivers/gpio/gpio-uclass.c
drivers/pci/pci-uclass.c
drivers/w1/w1-uclass.c