summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/usb.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2014-04-14 15:32:55 -0700
committerJohn W. Linville <linville@tuxdriver.com>2014-04-22 15:06:30 -0400
commit3977a6477dd1e53fac2016a719a3c2cb2cdba771 (patch)
tree7af474506c8155b88778121292f39f38edb09b2b /drivers/net/wireless/mwifiex/usb.c
parent3fffd7c17cca31b8538a313e02f9f4a6e63d360a (diff)
downloadlinux-next-3977a6477dd1e53fac2016a719a3c2cb2cdba771.tar.gz
mwifiex: remove redundant 'fw_load' completion structure
'add_remove_card_sem' semaphore already takes care of synchronization for driver load and unload threads. Hence there won't be a case when unload thread is waiting on 'wait_for_completion(fw_load)'. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/usb.c')
-rw-r--r--drivers/net/wireless/mwifiex/usb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/mwifiex/usb.c b/drivers/net/wireless/mwifiex/usb.c
index db6377f7dcb8..a8ce8130cfae 100644
--- a/drivers/net/wireless/mwifiex/usb.c
+++ b/drivers/net/wireless/mwifiex/usb.c
@@ -543,11 +543,6 @@ static void mwifiex_usb_disconnect(struct usb_interface *intf)
if (!adapter->priv_num)
return;
- /* In case driver is removed when asynchronous FW downloading is
- * in progress
- */
- wait_for_completion(&adapter->fw_load);
-
if (user_rmmod) {
#ifdef CONFIG_PM
if (adapter->is_suspended)