Skip to contentSkip to conversation

staging: r8188eu: core: remove duplicate condition check

PATCH New Saurav Girepunje 1 participant 1 message Oct 3, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: r8188eu: core: remove duplicate condition check

Remove the same expression (!memcmp(pIE->data, BROADCOM_OUI2, 3)) on both the side of "||" .

---
 drivers/staging/r8188eu/core/rtw_wlan_util.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/r8188eu/core/rtw_wlan_util.c +0 -1
index 3d1d8c198e53..8db68cf1e11c 100644
@@ -1271,7 +1271,6 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
 				DBG_88E("link to Artheros AP\n");
 				return HT_IOT_PEER_ATHEROS;
 			} else if ((!memcmp(pIE->data, BROADCOM_OUI1, 3)) ||
-				   (!memcmp(pIE->data, BROADCOM_OUI2, 3)) ||
 				   (!memcmp(pIE->data, BROADCOM_OUI2, 3))) {
 				DBG_88E("link to Broadcom AP\n");
 				return HT_IOT_PEER_BROADCOM;

--
2.32.0