|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 09/22] system: squash usb_parse into a single function |
Date: | Thu, 9 Jan 2025 18:30:35 +0100 |
User-agent: | Mozilla Thunderbird |
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 <alex.bennee@linaro.org> --- system/vl.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |