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>
This commit is contained in:

committed by
John W. Linville

parent
3fffd7c17c
commit
3977a6477d
@@ -521,7 +521,6 @@ done:
|
||||
release_firmware(adapter->firmware);
|
||||
adapter->firmware = NULL;
|
||||
}
|
||||
complete(&adapter->fw_load);
|
||||
if (init_failed)
|
||||
mwifiex_free_adapter(adapter);
|
||||
up(sem);
|
||||
@@ -535,7 +534,6 @@ static int mwifiex_init_hw_fw(struct mwifiex_adapter *adapter)
|
||||
{
|
||||
int ret;
|
||||
|
||||
init_completion(&adapter->fw_load);
|
||||
ret = request_firmware_nowait(THIS_MODULE, 1, adapter->fw_name,
|
||||
adapter->dev, GFP_KERNEL, adapter,
|
||||
mwifiex_fw_dpc);
|
||||
|
Reference in New Issue
Block a user