From c95d94c2c1bbadab40cb005aebd1383a9971f75a Mon Sep 17 00:00:00 2001 From: Rin Cat Date: Sat, 21 Sep 2019 05:58:39 -0400 Subject: [PATCH] =?UTF-8?q?Fix:=20warning:=20=E2=80=98~=E2=80=99=20on=20a?= =?UTF-8?q?=20boolean=20expression?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c b/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c index 70e8278..0698259 100644 --- a/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c +++ b/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c @@ -318,13 +318,13 @@ void _iqk_restore_rf_8822b(struct dm_struct *dm, u32 *backup_rf_reg, odm_set_rf_reg(dm, RF_PATH_B, RF_0xef, MASK20BITS, 0x0); /*0xdf[4]=0*/ _iqk_rf_set_check_8822b(dm, RF_PATH_A, 0xdf, - RF_backup[0][RF_PATH_A] & (~BIT(4))); + RF_backup[0][RF_PATH_A] & (!BIT(4))); _iqk_rf_set_check_8822b(dm, RF_PATH_B, 0xdf, - RF_backup[0][RF_PATH_B] & (~BIT(4))); + RF_backup[0][RF_PATH_B] & (!BIT(4))); #if 0 - /*odm_set_rf_reg(dm, RF_PATH_A, RF_0xdf, MASK20BITS, RF_backup[0][RF_PATH_A] & (~BIT(4)));*/ - /*odm_set_rf_reg(dm, RF_PATH_B, RF_0xdf, MASK20BITS, RF_backup[0][RF_PATH_B] & (~BIT(4)));*/ + /*odm_set_rf_reg(dm, RF_PATH_A, RF_0xdf, MASK20BITS, RF_backup[0][RF_PATH_A] & (!BIT(4)));*/ + /*odm_set_rf_reg(dm, RF_PATH_B, RF_0xdf, MASK20BITS, RF_backup[0][RF_PATH_B] & (!BIT(4)));*/ #endif for (i = 1; i < RF_REG_NUM_8822B; i++) {