mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
mwifiex: remove redundant goto exit_remove statement
The check for 'priv' pointer is redundant. 'priv' won't be used later in this routine. 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:
parent
f7b598532f
commit
c2868adebd
1 changed files with 2 additions and 6 deletions
|
@ -992,12 +992,8 @@ int mwifiex_remove_card(struct mwifiex_adapter *adapter, struct semaphore *sem)
|
|||
rtnl_unlock();
|
||||
}
|
||||
|
||||
priv = adapter->priv[0];
|
||||
if (!priv || !priv->wdev)
|
||||
goto exit_remove;
|
||||
|
||||
wiphy_unregister(priv->wdev->wiphy);
|
||||
wiphy_free(priv->wdev->wiphy);
|
||||
wiphy_unregister(adapter->wiphy);
|
||||
wiphy_free(adapter->wiphy);
|
||||
|
||||
mwifiex_terminate_workqueue(adapter);
|
||||
|
||||
|
|
Loading…
Reference in a new issue