hw/ppc/sam460ex: do not use usb_bus_find()
commit3ab78f3dbe7f5657e2e0e6a17d2c2a852746f9fb
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Feb 2024 12:43:58 +0000 (23 13:43 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 27 Feb 2024 08:37:03 +0000 (27 09:37 +0100)
treef2d6ca0096aa45bcceed31af63544f27fbed9627
parentee3b34cd48a29b744a390c33eaa1f97b69b88367
hw/ppc/sam460ex: do not use usb_bus_find()

usb_bus_find() is always used with argument -1; it can be replaced with
a search of the single USB bus on the machine.

Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240223124406.234509-3-pbonzini@redhat.com>
[PMD: Fixed style]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/ppc/sam460ex.c