Re: [PATCH 09/22] system: squash usb_parse into a single function

2025-01-09 Thread Philippe Mathieu-Daudé
On 9/1/25 18:06, Alex Bennée wrote: We don't need to wrap usb_device_add as usb_parse is already gated with an if (machine_usb(current_machine)) check. Instead just assert and directly fail if usbdevice_create returns NULL. Signed-off-by: Alex Bennée --- system/vl.c | 22 -

[PATCH 09/22] system: squash usb_parse into a single function

2025-01-09 Thread Alex Bennée
We don't need to wrap usb_device_add as usb_parse is already gated with an if (machine_usb(current_machine)) check. Instead just assert and directly fail if usbdevice_create returns NULL. Signed-off-by: Alex Bennée --- system/vl.c | 22 -- 1 file changed, 4 insertions(+), 18