system: squash usb_parse into a single function
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 16 Jan 2025 16:02:38 +0000 (16:02 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 17 Jan 2025 10:44:15 +0000 (10:44 +0000)
commit05cdd648a846bd60e300fcfa1eabf8f20e589cba
tree3909b7dc9b2d5e8de6bc5c653dae915a7c658dfe
parent77e911d0c76e91f1566afb9e76f05aee50f08e42
system: squash usb_parse into a single function

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.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250116160306.1709518-10-alex.bennee@linaro.org>
system/vl.c