Fix: extraneous parentheses

This commit is contained in:
Rin Cat (鈴猫) 2021-12-04 08:45:14 -05:00
parent 16223935bb
commit 96ec215d23
No known key found for this signature in database
GPG Key ID: 40DCF18E97150795
4 changed files with 4 additions and 4 deletions

View File

@ -388,7 +388,7 @@ void rtw_mfree_stainfo(struct sta_info *psta);
void rtw_mfree_stainfo(struct sta_info *psta)
{
if (&psta->lock != NULL)
if (&(psta->lock) != NULL)
_rtw_spinlock_free(&psta->lock);
_rtw_free_sta_xmit_priv_lock(&psta->sta_xmitpriv);

View File

@ -639,7 +639,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;
}

View File

@ -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);

View File

@ -3070,7 +3070,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;
}