diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-04-15 02:32:55 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-04-22 23:06:30 +0400 |
commit | 3977a6477dd1e53fac2016a719a3c2cb2cdba771 (patch) | |
tree | 7af474506c8155b88778121292f39f38edb09b2b /drivers/net/wireless/mwifiex/usb.c | |
parent | 3fffd7c17cca31b8538a313e02f9f4a6e63d360a (diff) | |
download | linux-3977a6477dd1e53fac2016a719a3c2cb2cdba771.tar.xz |
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.c | 5 |
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) |