Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: gadget: f_mass_storage: remove needless complete()

This commit removes call to the complete() function done in
fsg_unbind() which was never needed there but was a leftover
form file_storage.c.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Michal Nazarewicz and committed by
Greg Kroah-Hartman
00cb636e fe52f792

+1 -4
+1 -4
drivers/usb/gadget/f_mass_storage.c
··· 2657 2657 up_write(&common->filesem); 2658 2658 } 2659 2659 2660 - /* Let the unbind and cleanup routines know the thread has exited */ 2660 + /* Let fsg_unbind() know the thread has exited */ 2661 2661 complete_and_exit(&common->thread_notifier, 0); 2662 2662 } 2663 2663 ··· 2906 2906 if (common->state != FSG_STATE_TERMINATED) { 2907 2907 raise_exception(common, FSG_STATE_EXIT); 2908 2908 wait_for_completion(&common->thread_notifier); 2909 - 2910 - /* The cleanup routine waits for this completion also */ 2911 - complete(&common->thread_notifier); 2912 2909 } 2913 2910 2914 2911 if (likely(common->luns)) {