usb: f_mass_storage: test whether thread is running before starting another
[firefly-linux-kernel-4.4.55.git] / drivers / usb / gadget / legacy / acm_ms.c
index 4b158e2d1e57b829b19c8eb30c3cf8cadb6d32c4..64b2cbb0bc6b277d62b282f6aecf484797fa5250 100644 (file)
@@ -133,10 +133,6 @@ static int acm_ms_do_config(struct usb_configuration *c)
        if (status < 0)
                goto put_msg;
 
-       status = fsg_common_run_thread(opts->common);
-       if (status)
-               goto remove_acm;
-
        status = usb_add_function(c, f_msg);
        if (status)
                goto remove_acm;