Change-Id: I729c3deeba4ab1f7e6ef301090c4ef617f02b4a7
continue;
fws = container_of(gadget->funcs[i], struct usb_function_with_service, func);
continue;
fws = container_of(gadget->funcs[i], struct usb_function_with_service, func);
- ret = systemd_stop_unit_wait_stopped(fws->service, ".service", -1);
- if (ret < 0)
- goto free_gadget;
+ systemd_stop_unit_wait_stopped(fws->service, ".service", -1);
}
ret = sys_set_str(LEGACY_ENABLE_PATH, LEGACY_DISABLE);
}
ret = sys_set_str(LEGACY_ENABLE_PATH, LEGACY_DISABLE);
legacy_free_gadget(gadget);
return ret;
}
legacy_free_gadget(gadget);
return ret;
}