From e31df90484a620f410fe9bf32c3826daf9176f81 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Wed, 4 Nov 2020 19:06:40 +0000 Subject: [PATCH] issue 766: fix warnings about 'statement with no effect' --- hal/hal_mp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/hal_mp.c b/hal/hal_mp.c index 0f084c7..630ad4f 100644 --- a/hal/hal_mp.c +++ b/hal/hal_mp.c @@ -914,7 +914,7 @@ mpt_SetSingleTone_8814A( phy_set_bb_reg(pAdapter, rCCAonSec_Jaguar, BIT1, 0x1); /*/ Disable CCA*/ - for (StartPath; StartPath <= EndPath; StartPath++) { + for (; StartPath <= EndPath; StartPath++) { phy_set_rf_reg(pAdapter, StartPath, RF_AC_Jaguar, 0xF0000, 0x2); /*/ Tx mode: RF0x00[19:16]=4'b0010 */ phy_set_rf_reg(pAdapter, StartPath, RF_AC_Jaguar, 0x1F, 0x0); /*/ Lowest RF gain index: RF_0x0[4:0] = 0*/ @@ -952,7 +952,7 @@ mpt_SetSingleTone_8814A( EndPath = RF_PATH_D; break; } - for (StartPath; StartPath <= EndPath; StartPath++) + for (; StartPath <= EndPath; StartPath++) phy_set_rf_reg(pAdapter, StartPath, lna_low_gain_3, BIT1, 0x0); /* RF LO disabled */ phy_set_bb_reg(pAdapter, rCCAonSec_Jaguar, BIT1, 0x0); /* Enable CCA*/