diff options
Diffstat (limited to 'hw/usb_client_common.c')
-rw-r--r-- | hw/usb_client_common.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/usb_client_common.c b/hw/usb_client_common.c index 95b815b..dc08bde 100644 --- a/hw/usb_client_common.c +++ b/hw/usb_client_common.c @@ -558,9 +558,8 @@ static int legacy_enable(struct usb_client *usb) if (gadget->funcs[i]->function_group == USB_FUNCTION_GROUP_SIMPLE) continue; - fws = container_of(gadget->funcs[i], - struct usb_function_with_service, func); - systemd_start_unit_wait_started(fws->service, ".service", -1); + fws = container_of(gadget->funcs[i], struct usb_function_with_service, func); + (void)systemd_start_unit_wait_started(fws->service, ".service", -1); } legacy_free_gadget(gadget); @@ -587,7 +586,7 @@ static int legacy_disable(struct usb_client *usb) continue; fws = container_of(gadget->funcs[i], struct usb_function_with_service, func); - systemd_stop_unit_wait_stopped(fws->service, ".service", -1); + (void)systemd_stop_unit_wait_stopped(fws->service, ".service", -1); } ret = sys_set_str(LEGACY_ENABLE_PATH, LEGACY_DISABLE); |