From b293b4d12e9b3d1b2f179d8a0ee30040d064b343 Mon Sep 17 00:00:00 2001 From: Rin Cat Date: Sun, 2 Aug 2020 05:52:41 -0400 Subject: [PATCH] Fix: remove extraneous parentheses --- core/rtw_security.c | 4 ++-- hal/hal_dm.c | 2 +- hal/hal_mp.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/rtw_security.c b/core/rtw_security.c index cb689ab..3a3edee 100644 --- a/core/rtw_security.c +++ b/core/rtw_security.c @@ -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) { diff --git a/hal/hal_dm.c b/hal/hal_dm.c index b6baa97..64a91f8 100644 --- a/hal/hal_dm.c +++ b/hal/hal_dm.c @@ -600,7 +600,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; } diff --git a/hal/hal_mp.c b/hal/hal_mp.c index 648ca0e..6ee5e75 100644 --- a/hal/hal_mp.c +++ b/hal/hal_mp.c @@ -180,7 +180,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);