summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8712/os_intfs.c
diff options
context:
space:
mode:
authorThomas Vegas <thomas@grouk.net>2014-06-01 14:34:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-19 16:40:07 -0700
commit22649bb2b664ca241c8a14b4f886940c3a9cc998 (patch)
treeb818f37b13f8488d197a1defdebf132dd5f2c646 /drivers/staging/rtl8712/os_intfs.c
parent5947956bdcf1aff31caba90f80f363340e18cb56 (diff)
staging: rtl8712: Remove useless variable 'fw_found'
The net device only exists when firmware is loaded successfully. Firmware presence variable is only used through r871xu_dev_remove() and this function already checks for net device existence. Signed-off-by: Thomas Vegas <thomas@grouk.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/os_intfs.c')
-rw-r--r--drivers/staging/rtl8712/os_intfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/os_intfs.c b/drivers/staging/rtl8712/os_intfs.c
index 6bd08213cb70..13debb59ad97 100644
--- a/drivers/staging/rtl8712/os_intfs.c
+++ b/drivers/staging/rtl8712/os_intfs.c
@@ -345,8 +345,7 @@ u8 r8712_free_drv_sw(struct _adapter *padapter)
r8712_free_mlme_priv(&padapter->mlmepriv);
r8712_free_io_queue(padapter);
_free_xmit_priv(&padapter->xmitpriv);
- if (padapter->fw_found)
- _r8712_free_sta_priv(&padapter->stapriv);
+ _r8712_free_sta_priv(&padapter->stapriv);
_r8712_free_recv_priv(&padapter->recvpriv);
mp871xdeinit(padapter);
if (pnetdev)