rtl88x2CS: Address equality comparisons with extraneous parentheses
authorBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 16:33:38 +0000 (17:33 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 16:41:51 +0000 (17:41 +0100)
Change-Id: I58c8e41cfe8d187a50ded9deba38262558140ba9

rtl88x2CS/core/rtw_security.c
rtl88x2CS/hal/hal_dm.c
rtl88x2CS/hal/hal_mp.c
rtl88x2CS/os_dep/linux/ioctl_mp.c

index 58075211acd4b9ad8bcf61ba388bbeda70fd687c..951a8a22982a1487a2c6c4f711dda9b2fa6e2240 100644 (file)
@@ -1575,7 +1575,7 @@ u32       rtw_aes_encrypt(_adapter *padapter, u8 *pxmitframe)
        pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset;
 
        /* 4 start to encrypt each fragment */
-       if ((pattrib->encrypt == _AES_)) {
+       if (pattrib->encrypt == _AES_) {
                /*
                                if(pattrib->psta)
                                {
@@ -1930,7 +1930,7 @@ u32       rtw_aes_decrypt(_adapter *padapter, u8 *precvframe)
        u32     res = _SUCCESS;
        pframe = (unsigned char *)((union recv_frame *)precvframe)->u.hdr.rx_data;
        /* 4 start to encrypt each fragment */
-       if ((prxattrib->encrypt == _AES_)) {
+       if (prxattrib->encrypt == _AES_) {
 
                stainfo = rtw_get_stainfo(&padapter->stapriv , &prxattrib->ta[0]);
                if (stainfo != NULL) {
index da768e68a3ee4223a598599de9b0a7907874a608..24aa4423238a667f5fef87983c54675fe4b62557 100644 (file)
@@ -592,7 +592,7 @@ void rtw_hal_turbo_edca(_adapter *adapter)
                return;
        }
 
-       if ((pregpriv->wifi_spec == 1)) { /* || (pmlmeinfo->HT_enable == 0)) */
+       if (pregpriv->wifi_spec == 1) { /* || (pmlmeinfo->HT_enable == 0)) */
                precvpriv->is_any_non_be_pkts = _FALSE;
                return;
        }
index c6399bb1cbcddc434983dd8e8457c5887ddf2497..46cbc422ed05cb564a2f12c01fe1ecc67dfb5c6c 100644 (file)
@@ -181,7 +181,7 @@ void hal_mpt_CCKTxPowerAdjust(PADAPTER Adapter, BOOLEAN bInCH14)
        } else if (IS_HARDWARE_TYPE_8723D(Adapter)) {
                /* 2.4G CCK TX DFIR */
                /* 2016.01.20 Suggest from RS BB mingzhi*/
-               if ((u1Channel == 14)) {
+               if (u1Channel == 14) {
                        phy_set_bb_reg(Adapter, rCCK0_TxFilter2, bMaskDWord, 0x0000B81C);
                        phy_set_bb_reg(Adapter, rCCK0_DebugPort, bMaskDWord, 0x00000000);
                        phy_set_bb_reg(Adapter, 0xAAC, bMaskDWord, 0x00003667);
index 366a248cd04cc7ba683b7f0881162f22262fd3a7..6f7d9c4f45d0f6eba2974784540f8948013c2872 100644 (file)
@@ -2646,7 +2646,7 @@ int rtw_mp_link(struct net_device *dev,
                /* tmp[0],[1],[2] */
                /* txdata,00e04c871200........... */
                if (strcmp(tmp[0], "txdata") == 0) {
-                       if ((tmp[1] == NULL)) {
+                       if (tmp[1] == NULL) {
                                err = -EINVAL;
                                goto exit;
                        }