mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
staging: rtl8723bs: remove unnecessary braces from conditionals
Removed the braces from if else statements in core/rtw_wlan_util.c since the previous commit (6a257dd6de516573) caused all conditional blocks to have a single statement in the function check_assoc_AP. Signed-off-by: Shreyansh Chouhan <chouhan.shreyansh630@gmail.com> Link: https://lore.kernel.org/r/20210524135105.5550-3-chouhan.shreyansh630@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3c8c577fd2
commit
8f5193f828
1 changed files with 17 additions and 18 deletions
|
@ -1532,25 +1532,24 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
|
|||
|
||||
switch (pIE->ElementID) {
|
||||
case WLAN_EID_VENDOR_SPECIFIC:
|
||||
if ((!memcmp(pIE->data, ARTHEROS_OUI1, 3)) || (!memcmp(pIE->data, ARTHEROS_OUI2, 3))) {
|
||||
if ((!memcmp(pIE->data, ARTHEROS_OUI1, 3)) || (!memcmp(pIE->data, ARTHEROS_OUI2, 3)))
|
||||
return HT_IOT_PEER_ATHEROS;
|
||||
} else if ((!memcmp(pIE->data, BROADCOM_OUI1, 3)) ||
|
||||
(!memcmp(pIE->data, BROADCOM_OUI2, 3)) ||
|
||||
(!memcmp(pIE->data, BROADCOM_OUI3, 3))) {
|
||||
return HT_IOT_PEER_BROADCOM;
|
||||
} else if (!memcmp(pIE->data, MARVELL_OUI, 3)) {
|
||||
return HT_IOT_PEER_MARVELL;
|
||||
} else if (!memcmp(pIE->data, RALINK_OUI, 3)) {
|
||||
return HT_IOT_PEER_RALINK;
|
||||
} else if (!memcmp(pIE->data, CISCO_OUI, 3)) {
|
||||
return HT_IOT_PEER_CISCO;
|
||||
} else if (!memcmp(pIE->data, REALTEK_OUI, 3)) {
|
||||
return get_realtek_assoc_AP_vender(pIE);
|
||||
} else if (!memcmp(pIE->data, AIRGOCAP_OUI, 3)) {
|
||||
return HT_IOT_PEER_AIRGO;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
else if ((!memcmp(pIE->data, BROADCOM_OUI1, 3)) ||
|
||||
(!memcmp(pIE->data, BROADCOM_OUI2, 3)) ||
|
||||
(!memcmp(pIE->data, BROADCOM_OUI3, 3)))
|
||||
return HT_IOT_PEER_BROADCOM;
|
||||
else if (!memcmp(pIE->data, MARVELL_OUI, 3))
|
||||
return HT_IOT_PEER_MARVELL;
|
||||
else if (!memcmp(pIE->data, RALINK_OUI, 3))
|
||||
return HT_IOT_PEER_RALINK;
|
||||
else if (!memcmp(pIE->data, CISCO_OUI, 3))
|
||||
return HT_IOT_PEER_CISCO;
|
||||
else if (!memcmp(pIE->data, REALTEK_OUI, 3))
|
||||
return get_realtek_assoc_AP_vender(pIE);
|
||||
else if (!memcmp(pIE->data, AIRGOCAP_OUI, 3))
|
||||
return HT_IOT_PEER_AIRGO;
|
||||
else
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue