diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2013-12-02 23:17:57 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-09 15:35:31 -0500 |
commit | c2868adebdb1c3233562e152d99a834f084cc07e (patch) | |
tree | c57adc09862054f8e3806e08fb9818ec301e14d1 /drivers/net/wireless/mwifiex | |
parent | f7b598532f3dccfb7b57f57b1163a0e1b3bc50cf (diff) | |
download | op-kernel-dev-c2868adebdb1c3233562e152d99a834f084cc07e.zip op-kernel-dev-c2868adebdb1c3233562e152d99a834f084cc07e.tar.gz |
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c index 36c79cf..6bf58ab 100644 --- a/drivers/net/wireless/mwifiex/main.c +++ b/drivers/net/wireless/mwifiex/main.c @@ -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); |