From 7dba0cab0c03e10092061c0123a0bdefc235c7fc Mon Sep 17 00:00:00 2001 From: Rin Cat Date: Sat, 21 Sep 2019 06:02:27 -0400 Subject: [PATCH] =?UTF-8?q?Fix:=20warning:=20=E2=80=98~=E2=80=99=20on=20a?= =?UTF-8?q?=20boolean=20expression=20in=20halrf=5Fiqk=5F8822b.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c b/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c index 0698259..fcd710f 100644 --- a/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c +++ b/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c @@ -443,11 +443,11 @@ void _iqk_reload_iqk_setting_8822b(struct dm_struct *dm, u8 ch, odm_write_4byte(dm, 0x1bd8, data); } if (idx == 0) { - report = ~(iqk->iqk_fail_report[ch][path][idx]); + report = !(iqk->iqk_fail_report[ch][path][idx]); odm_set_bb_reg(dm, iqk_apply[path], BIT(0), report); } else { - report = ~(iqk->iqk_fail_report[ch][path][idx]); + report = !(iqk->iqk_fail_report[ch][path][idx]); odm_set_bb_reg(dm, iqk_apply[path], BIT(10), report); } @@ -528,7 +528,7 @@ void _iqk_rf_setting_8822b(struct dm_struct *dm) /*0xdf:B11 = 1,B4 = 0, B1 = 1*/ tmp = odm_get_rf_reg(dm, (enum rf_path)path, RF_0xdf, MASK20BITS); - tmp = (tmp & (~BIT(4))) | BIT(1) | BIT(11); + tmp = (tmp & (!BIT(4))) | BIT(1) | BIT(11); _iqk_rf_set_check_8822b(dm, (enum rf_path)path, 0xdf, tmp); #if 0 /*odm_set_rf_reg(dm, (enum rf_path)path, RF_0xdf, MASK20BITS, tmp);*/