projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: f_mass_storage: test whether thread is running before starting another
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
usb
/
gadget
/
legacy
/
mass_storage.c
diff --git
a/drivers/usb/gadget/legacy/mass_storage.c
b/drivers/usb/gadget/legacy/mass_storage.c
index bda3c519110fe266dec569c4e85159499fa062d1..99aa22c81770734728a6dddddec1e1204d75a8c4 100644
(file)
--- a/
drivers/usb/gadget/legacy/mass_storage.c
+++ b/
drivers/usb/gadget/legacy/mass_storage.c
@@
-132,10
+132,6
@@
static int msg_do_config(struct usb_configuration *c)
if (IS_ERR(f_msg))
return PTR_ERR(f_msg);
- ret = fsg_common_run_thread(opts->common);
- if (ret)
- goto put_func;
-
ret = usb_add_function(c, f_msg);
if (ret)
goto put_func;