mirror of https://gitee.com/openkylin/linux.git
staging: rtl8188eu: remove unnecessary parentheses in rtl8188e_cmd.c
Remove unnecessary parentheses reported by checkpatch. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b2bb112db1
commit
00fa3661a4
|
@ -211,9 +211,9 @@ static void ConstructBeacon(struct adapter *adapt, u8 *pframe, u32 *pLength)
|
||||||
struct ieee80211_hdr *pwlanhdr;
|
struct ieee80211_hdr *pwlanhdr;
|
||||||
__le16 *fctrl;
|
__le16 *fctrl;
|
||||||
u32 rate_len, pktlen;
|
u32 rate_len, pktlen;
|
||||||
struct mlme_ext_priv *pmlmeext = &(adapt->mlmeextpriv);
|
struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv;
|
||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
struct wlan_bssid_ex *cur_network = &(pmlmeinfo->network);
|
struct wlan_bssid_ex *cur_network = &pmlmeinfo->network;
|
||||||
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||||
|
|
||||||
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
||||||
|
@ -222,7 +222,7 @@ static void ConstructBeacon(struct adapter *adapt, u8 *pframe, u32 *pLength)
|
||||||
*(fctrl) = 0;
|
*(fctrl) = 0;
|
||||||
|
|
||||||
ether_addr_copy(pwlanhdr->addr1, bc_addr);
|
ether_addr_copy(pwlanhdr->addr1, bc_addr);
|
||||||
ether_addr_copy(pwlanhdr->addr2, myid(&(adapt->eeprompriv)));
|
ether_addr_copy(pwlanhdr->addr2, myid(&adapt->eeprompriv));
|
||||||
ether_addr_copy(pwlanhdr->addr3, cur_network->MacAddress);
|
ether_addr_copy(pwlanhdr->addr3, cur_network->MacAddress);
|
||||||
|
|
||||||
SetSeqNum(pwlanhdr, 0/*pmlmeext->mgnt_seq*/);
|
SetSeqNum(pwlanhdr, 0/*pmlmeext->mgnt_seq*/);
|
||||||
|
@ -294,10 +294,10 @@ static void ConstructBeacon(struct adapter *adapt, u8 *pframe, u32 *pLength)
|
||||||
static void ConstructPSPoll(struct adapter *adapt, u8 *pframe, u32 *pLength)
|
static void ConstructPSPoll(struct adapter *adapt, u8 *pframe, u32 *pLength)
|
||||||
{
|
{
|
||||||
struct ieee80211_hdr *pwlanhdr;
|
struct ieee80211_hdr *pwlanhdr;
|
||||||
struct mlme_ext_priv *pmlmeext = &(adapt->mlmeextpriv);
|
struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv;
|
||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
__le16 *fctrl;
|
__le16 *fctrl;
|
||||||
struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network);
|
struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network;
|
||||||
|
|
||||||
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ static void ConstructPSPoll(struct adapter *adapt, u8 *pframe, u32 *pLength)
|
||||||
ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress);
|
ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress);
|
||||||
|
|
||||||
/* TA. */
|
/* TA. */
|
||||||
ether_addr_copy(pwlanhdr->addr2, myid(&(adapt->eeprompriv)));
|
ether_addr_copy(pwlanhdr->addr2, myid(&adapt->eeprompriv));
|
||||||
|
|
||||||
*pLength = 16;
|
*pLength = 16;
|
||||||
}
|
}
|
||||||
|
@ -332,9 +332,9 @@ static void ConstructNullFunctionData(struct adapter *adapt, u8 *pframe,
|
||||||
u32 pktlen;
|
u32 pktlen;
|
||||||
struct mlme_priv *pmlmepriv = &adapt->mlmepriv;
|
struct mlme_priv *pmlmepriv = &adapt->mlmepriv;
|
||||||
struct wlan_network *cur_network = &pmlmepriv->cur_network;
|
struct wlan_network *cur_network = &pmlmepriv->cur_network;
|
||||||
struct mlme_ext_priv *pmlmeext = &(adapt->mlmeextpriv);
|
struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv;
|
||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network);
|
struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network;
|
||||||
|
|
||||||
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
||||||
|
|
||||||
|
@ -347,19 +347,19 @@ static void ConstructNullFunctionData(struct adapter *adapt, u8 *pframe,
|
||||||
case Ndis802_11Infrastructure:
|
case Ndis802_11Infrastructure:
|
||||||
SetToDs(fctrl);
|
SetToDs(fctrl);
|
||||||
ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress);
|
ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress);
|
||||||
ether_addr_copy(pwlanhdr->addr2, myid(&(adapt->eeprompriv)));
|
ether_addr_copy(pwlanhdr->addr2, myid(&adapt->eeprompriv));
|
||||||
ether_addr_copy(pwlanhdr->addr3, StaAddr);
|
ether_addr_copy(pwlanhdr->addr3, StaAddr);
|
||||||
break;
|
break;
|
||||||
case Ndis802_11APMode:
|
case Ndis802_11APMode:
|
||||||
SetFrDs(fctrl);
|
SetFrDs(fctrl);
|
||||||
ether_addr_copy(pwlanhdr->addr1, StaAddr);
|
ether_addr_copy(pwlanhdr->addr1, StaAddr);
|
||||||
ether_addr_copy(pwlanhdr->addr2, pnetwork->MacAddress);
|
ether_addr_copy(pwlanhdr->addr2, pnetwork->MacAddress);
|
||||||
ether_addr_copy(pwlanhdr->addr3, myid(&(adapt->eeprompriv)));
|
ether_addr_copy(pwlanhdr->addr3, myid(&adapt->eeprompriv));
|
||||||
break;
|
break;
|
||||||
case Ndis802_11IBSS:
|
case Ndis802_11IBSS:
|
||||||
default:
|
default:
|
||||||
ether_addr_copy(pwlanhdr->addr1, StaAddr);
|
ether_addr_copy(pwlanhdr->addr1, StaAddr);
|
||||||
ether_addr_copy(pwlanhdr->addr2, myid(&(adapt->eeprompriv)));
|
ether_addr_copy(pwlanhdr->addr2, myid(&adapt->eeprompriv));
|
||||||
ether_addr_copy(pwlanhdr->addr3, pnetwork->MacAddress);
|
ether_addr_copy(pwlanhdr->addr3, pnetwork->MacAddress);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -391,13 +391,13 @@ static void ConstructProbeRsp(struct adapter *adapt, u8 *pframe, u32 *pLength, u
|
||||||
__le16 *fctrl;
|
__le16 *fctrl;
|
||||||
u8 *mac, *bssid;
|
u8 *mac, *bssid;
|
||||||
u32 pktlen;
|
u32 pktlen;
|
||||||
struct mlme_ext_priv *pmlmeext = &(adapt->mlmeextpriv);
|
struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv;
|
||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
struct wlan_bssid_ex *cur_network = &(pmlmeinfo->network);
|
struct wlan_bssid_ex *cur_network = &pmlmeinfo->network;
|
||||||
|
|
||||||
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
pwlanhdr = (struct ieee80211_hdr *)pframe;
|
||||||
|
|
||||||
mac = myid(&(adapt->eeprompriv));
|
mac = myid(&adapt->eeprompriv);
|
||||||
bssid = cur_network->MacAddress;
|
bssid = cur_network->MacAddress;
|
||||||
|
|
||||||
fctrl = &pwlanhdr->frame_control;
|
fctrl = &pwlanhdr->frame_control;
|
||||||
|
@ -458,7 +458,7 @@ static void SetFwRsvdPagePkt(struct adapter *adapt, bool bDLFinished)
|
||||||
pxmitpriv = &adapt->xmitpriv;
|
pxmitpriv = &adapt->xmitpriv;
|
||||||
pmlmeext = &adapt->mlmeextpriv;
|
pmlmeext = &adapt->mlmeextpriv;
|
||||||
pmlmeinfo = &pmlmeext->mlmext_info;
|
pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
pnetwork = &(pmlmeinfo->network);
|
pnetwork = &pmlmeinfo->network;
|
||||||
|
|
||||||
TxDescLen = TXDESC_SIZE;
|
TxDescLen = TXDESC_SIZE;
|
||||||
PageNum = 0;
|
PageNum = 0;
|
||||||
|
@ -542,8 +542,8 @@ static void SetFwRsvdPagePkt(struct adapter *adapt, bool bDLFinished)
|
||||||
void rtl8188e_set_FwJoinBssReport_cmd(struct adapter *adapt, u8 mstatus)
|
void rtl8188e_set_FwJoinBssReport_cmd(struct adapter *adapt, u8 mstatus)
|
||||||
{
|
{
|
||||||
struct hal_data_8188e *haldata = adapt->HalData;
|
struct hal_data_8188e *haldata = adapt->HalData;
|
||||||
struct mlme_ext_priv *pmlmeext = &(adapt->mlmeextpriv);
|
struct mlme_ext_priv *pmlmeext = &adapt->mlmeextpriv;
|
||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
bool bSendBeacon = false;
|
bool bSendBeacon = false;
|
||||||
bool bcn_valid = false;
|
bool bcn_valid = false;
|
||||||
u8 DLBcnCount = 0;
|
u8 DLBcnCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue