aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712/ieee80211.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-10-27 17:42:25 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-29 17:37:26 +0800
commite29d3ebcda3ebc0193fb98c53c6c3ca6fa2fc030 (patch)
treee97d381a07c3cd43449fc9f83f41d18db8008f32 /drivers/staging/rtl8712/ieee80211.c
parentstaging: rtl8712: Remove redundant cast (diff)
downloadlinux-dev-e29d3ebcda3ebc0193fb98c53c6c3ca6fa2fc030.tar.xz
linux-dev-e29d3ebcda3ebc0193fb98c53c6c3ca6fa2fc030.zip
staging: rtl8712: remove unused variables
unused variables are removed. These variables were only assigned some values and after that they were never being used. So they are safe to be removed , and it has been build tested. I left a call to r8712_read32(padapter, TCR) and r8712_read8(padapter, SDIO_HCPWM) . r8712_read32() and r8712_read8() is ultimately calling usb_read32() and usb_read8() respectively. and they are again calling r8712_usbctrl_vendorreq(). this r8712_usbctrl_vendorreq() is communicating through the usb bus and is sending and receiving the control msg. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/ieee80211.c')
-rw-r--r--drivers/staging/rtl8712/ieee80211.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/ieee80211.c b/drivers/staging/rtl8712/ieee80211.c
index eb23b08cb7fd..57868085ce58 100644
--- a/drivers/staging/rtl8712/ieee80211.c
+++ b/drivers/staging/rtl8712/ieee80211.c
@@ -368,13 +368,12 @@ int r8712_parse_wpa2_ie(u8 *rsn_ie, int rsn_ie_len, int *group_cipher,
int r8712_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len,
u8 *wpa_ie, u16 *wpa_len)
{
- u8 authmode, sec_idx;
+ u8 authmode;
u8 wpa_oui[4] = {0x0, 0x50, 0xf2, 0x01};
uint cnt;
/*Search required WPA or WPA2 IE and copy to sec_ie[ ]*/
cnt = (_TIMESTAMP_ + _BEACON_ITERVAL_ + _CAPABILITY_);
- sec_idx = 0;
while (cnt < in_len) {
authmode = in_ie[cnt];
if ((authmode == _WPA_IE_ID_) &&