staging: rtl8723au: Remove duplicated argument to ||
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>
Sun, 26 Oct 2014 21:30:10 +0000 (23:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 10:47:22 +0000 (18:47 +0800)
This patch removes duplicated argument to ||, fixing the
following warning detected using coccinelle tool:
duplicated argument to && or ||.

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_wlan_util.c

index bc63d6f1773a0ba31a93ba43f219290ce1315171..69d9e0f17fd8390544409fd2a1dfa3ed9bbed2aa 100644 (file)
@@ -1322,7 +1322,6 @@ unsigned char check_assoc_AP23a(u8 *pframe, uint len)
                                DBG_8723A("link to Artheros AP\n");
                                return HT_IOT_PEER_ATHEROS;
                        } else if (!memcmp(p + 2, BROADCOM_OUI1, 3) ||
-                                  !memcmp(p + 2, BROADCOM_OUI2, 3) ||
                                   !memcmp(p + 2, BROADCOM_OUI2, 3)) {
                                DBG_8723A("link to Broadcom AP\n");
                                return HT_IOT_PEER_BROADCOM;