From f284edfed84c4cff9d0cd9c33c0ca41f61831477 Mon Sep 17 00:00:00 2001 From: Saurav Girepunje Date: Sun, 3 Oct 2021 17:45:27 +0530 Subject: [PATCH] staging: r8188eu: core: remove duplicate condition check Remove the same expression (!memcmp(pIE->data, BROADCOM_OUI2, 3)) on both the side of "||" . Signed-off-by: Saurav Girepunje Link: https://lore.kernel.org/r/YVme3xtnCHN/hOjS@user Signed-off-by: Greg Kroah-Hartman --- drivers/staging/r8188eu/core/rtw_wlan_util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/r8188eu/core/rtw_wlan_util.c b/drivers/staging/r8188eu/core/rtw_wlan_util.c index 3d1d8c198e53..8db68cf1e11c 100644 --- a/drivers/staging/r8188eu/core/rtw_wlan_util.c +++ b/drivers/staging/r8188eu/core/rtw_wlan_util.c @@ -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;