From f2d61b9fa49df064a179f16c8fdaf312aff3010f Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sun, 22 Oct 2023 17:33:38 +0100 Subject: [PATCH] rtl88x2CS: Address equality comparisons with extraneous parentheses Change-Id: I58c8e41cfe8d187a50ded9deba38262558140ba9 --- rtl88x2CS/core/rtw_security.c | 4 ++-- rtl88x2CS/hal/hal_dm.c | 2 +- rtl88x2CS/hal/hal_mp.c | 2 +- rtl88x2CS/os_dep/linux/ioctl_mp.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rtl88x2CS/core/rtw_security.c b/rtl88x2CS/core/rtw_security.c index 5807521..951a8a2 100644 --- a/rtl88x2CS/core/rtw_security.c +++ b/rtl88x2CS/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/rtl88x2CS/hal/hal_dm.c b/rtl88x2CS/hal/hal_dm.c index da768e6..24aa442 100644 --- a/rtl88x2CS/hal/hal_dm.c +++ b/rtl88x2CS/hal/hal_dm.c @@ -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; } diff --git a/rtl88x2CS/hal/hal_mp.c b/rtl88x2CS/hal/hal_mp.c index c6399bb..46cbc42 100644 --- a/rtl88x2CS/hal/hal_mp.c +++ b/rtl88x2CS/hal/hal_mp.c @@ -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); diff --git a/rtl88x2CS/os_dep/linux/ioctl_mp.c b/rtl88x2CS/os_dep/linux/ioctl_mp.c index 366a248..6f7d9c4 100644 --- a/rtl88x2CS/os_dep/linux/ioctl_mp.c +++ b/rtl88x2CS/os_dep/linux/ioctl_mp.c @@ -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; } -- 2.20.1