diff --git a/core/rtw_sta_mgt.c b/core/rtw_sta_mgt.c index c2e27b9..23d6b72 100644 --- a/core/rtw_sta_mgt.c +++ b/core/rtw_sta_mgt.c @@ -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); diff --git a/hal/hal_dm.c b/hal/hal_dm.c index 83bf523..b42235a 100644 --- a/hal/hal_dm.c +++ b/hal/hal_dm.c @@ -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; } diff --git a/hal/hal_mp.c b/hal/hal_mp.c index 9817e53..8d7bd54 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); diff --git a/os_dep/linux/ioctl_mp.c b/os_dep/linux/ioctl_mp.c index 0c49117..c8e2a67 100644 --- a/os_dep/linux/ioctl_mp.c +++ b/os_dep/linux/ioctl_mp.c @@ -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; }