mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-23 19:21:46 +00:00
staging: rtl8723bs: core: rtw_mlme.c: Remove unnecessary parentheses
Challenge suggested by coccinelle. Remove unnecessary parentheses around expressions. Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2beb8a8189
commit
fbf99f6670
@ -333,7 +333,7 @@ void rtw_generate_random_ibss(u8 *pibss)
|
||||
|
||||
u8 *rtw_get_capability_from_ie(u8 *ie)
|
||||
{
|
||||
return (ie + 8 + 2);
|
||||
return ie + 8 + 2;
|
||||
}
|
||||
|
||||
|
||||
@ -348,7 +348,7 @@ u16 rtw_get_capability(struct wlan_bssid_ex *bss)
|
||||
|
||||
u8 *rtw_get_beacon_interval_from_ie(u8 *ie)
|
||||
{
|
||||
return (ie + 8);
|
||||
return ie + 8;
|
||||
}
|
||||
|
||||
void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
|
||||
@ -434,14 +434,14 @@ int is_same_network(struct wlan_bssid_ex *src, struct wlan_bssid_ex *dst, u8 fea
|
||||
s_cap = le16_to_cpu(tmps);
|
||||
d_cap = le16_to_cpu(tmpd);
|
||||
|
||||
return ((src->Ssid.SsidLength == dst->Ssid.SsidLength) &&
|
||||
return (src->Ssid.SsidLength == dst->Ssid.SsidLength) &&
|
||||
/* (src->Configuration.DSConfig == dst->Configuration.DSConfig) && */
|
||||
((!memcmp(src->MacAddress, dst->MacAddress, ETH_ALEN))) &&
|
||||
((!memcmp(src->Ssid.Ssid, dst->Ssid.Ssid, src->Ssid.SsidLength))) &&
|
||||
((s_cap & WLAN_CAPABILITY_IBSS) ==
|
||||
(d_cap & WLAN_CAPABILITY_IBSS)) &&
|
||||
((s_cap & WLAN_CAPABILITY_BSS) ==
|
||||
(d_cap & WLAN_CAPABILITY_BSS)));
|
||||
(d_cap & WLAN_CAPABILITY_BSS));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user