Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: r8188eu: remove HT_cap member of HT_caps_element structure

This member used only once and can be replaced
with address of HT_caps_element.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ivan Safonov and committed by
Greg Kroah-Hartman
16d475cb 7494b27f

+2 -2
+2 -1
drivers/staging/rtl8188eu/core/rtw_wlan_util.c
··· 716 716 struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); 717 717 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; 718 718 struct ht_priv *phtpriv = &pmlmepriv->htpriv; 719 + u8 *HT_cap = (u8 *)(&pmlmeinfo->HT_caps.u.HT_cap_element); 719 720 720 721 if (pIE == NULL) 721 722 return; ··· 729 728 for (i = 0; i < (pIE->Length); i++) { 730 729 if (i != 2) { 731 730 /* Got the endian issue here. */ 732 - pmlmeinfo->HT_caps.u.HT_cap[i] &= (pIE->data[i]); 731 + HT_cap[i] &= (pIE->data[i]); 733 732 } else { 734 733 /* modify from fw by Thomas 2010/11/17 */ 735 734 if ((pmlmeinfo->HT_caps.u.HT_cap_element.AMPDU_para & 0x3) > (pIE->data[i] & 0x3))
-1
drivers/staging/rtl8188eu/include/wifi.h
··· 532 532 unsigned int Beamforming_caps; 533 533 unsigned char ASEL_caps; 534 534 } HT_cap_element; 535 - unsigned char HT_cap[26]; 536 535 } u; 537 536 } __packed; 538 537