projects
/
platform
/
core
/
system
/
libdevice-node.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3866917
)
Do not check for services failures when disabling usb gadget
96/221296/1
author
INSUN PYO
<insun.pyo@samsung.com>
Tue, 31 Dec 2019 04:24:40 +0000
(13:24 +0900)
committer
INSUN PYO
<insun.pyo@samsung.com>
Tue, 31 Dec 2019 04:24:40 +0000
(13:24 +0900)
Change-Id: I729c3deeba4ab1f7e6ef301090c4ef617f02b4a7
hw/usb_client_common.c
patch
|
blob
|
history
diff --git
a/hw/usb_client_common.c
b/hw/usb_client_common.c
index
fab8ea1
..
95b815b
100755
(executable)
--- a/
hw/usb_client_common.c
+++ b/
hw/usb_client_common.c
@@
-587,14
+587,11
@@
static int legacy_disable(struct usb_client *usb)
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);
-free_gadget:
legacy_free_gadget(gadget);
return ret;
}