Commit 00cb636e authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by Greg Kroah-Hartman

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: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fe52f792
...@@ -2657,7 +2657,7 @@ static int fsg_main_thread(void *common_) ...@@ -2657,7 +2657,7 @@ static int fsg_main_thread(void *common_)
up_write(&common->filesem); up_write(&common->filesem);
} }
/* Let the unbind and cleanup routines know the thread has exited */ /* Let fsg_unbind() know the thread has exited */
complete_and_exit(&common->thread_notifier, 0); complete_and_exit(&common->thread_notifier, 0);
} }
...@@ -2906,9 +2906,6 @@ static void fsg_common_release(struct kref *ref) ...@@ -2906,9 +2906,6 @@ static void fsg_common_release(struct kref *ref)
if (common->state != FSG_STATE_TERMINATED) { if (common->state != FSG_STATE_TERMINATED) {
raise_exception(common, FSG_STATE_EXIT); raise_exception(common, FSG_STATE_EXIT);
wait_for_completion(&common->thread_notifier); wait_for_completion(&common->thread_notifier);
/* The cleanup routine waits for this completion also */
complete(&common->thread_notifier);
} }
if (likely(common->luns)) { if (likely(common->luns)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment