diff options
author | Tom Rini <trini@konsulko.com> | 2022-10-29 18:51:22 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-29 18:51:22 -0400 |
commit | 6f02819cceb19c334f1dbd6eccefb4ccfae319f9 (patch) | |
tree | ada26fe279934fbb18d69324010b3ce1f55ffb63 /cmd/virtio.c | |
parent | fb63362c63c7aeacb1dfde330ee8f692da7972f9 (diff) | |
parent | f21954750aa8ed445ab83998bb099e366136c428 (diff) |
Merge tag 'dm-pull-29oct22' of https://source.denx.de/u-boot/custodians/u-boot-dm
Fix pylibfdt warnings and use setuptools to build
Various minor changes to core dm and sandbox
Diffstat (limited to 'cmd/virtio.c')
-rw-r--r-- | cmd/virtio.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cmd/virtio.c b/cmd/virtio.c index ec87d4f02c9..019e317e755 100644 --- a/cmd/virtio.c +++ b/cmd/virtio.c @@ -23,18 +23,15 @@ static int do_virtio(struct cmd_tbl *cmdtp, int flag, int argc, * device_probe() for children (i.e. virtio devices) */ struct udevice *bus, *child; - int ret; - ret = uclass_first_device(UCLASS_VIRTIO, &bus); - if (ret) + uclass_first_device(UCLASS_VIRTIO, &bus); + if (!bus) return CMD_RET_FAILURE; while (bus) { device_foreach_child_probe(child, bus) ; - ret = uclass_next_device(&bus); - if (ret) - break; + uclass_next_device(&bus); } return CMD_RET_SUCCESS; |