Skip to contentSkip to conversation

staging: rtl8723bs: remove unnecessary braces

PATCH New Mohammed Momin 1 participant 1 message Aug 3 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: remove unnecessary braces

Remove unnecessary braces around a single-statement 'if' block in HalPhyRf.c. This resolves the following checkpatch warning:
"WARNING: braces {} are not necessary for single statement blocks"

---
 drivers/staging/rtl8723bs/hal/HalPhyRf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723bs/hal/HalPhyRf.c +1 -2
index bf44c1050be5..449db21e8a0b 100644
@@ -117,9 +117,8 @@ void ODM_TXPowerTrackingCallback_ThermalMeter(struct adapter *Adapter)
 	}
 
 	/* Calculate Average ThermalValue after average enough times */
-	if (ThermalValue_AVG_count) {
+	if (ThermalValue_AVG_count)
 		ThermalValue = (u8)(ThermalValue_AVG / ThermalValue_AVG_count);
-	}
 
 	/* 4 5. Calculate delta, delta_LCK */
 	/* delta" here is used to determine whether thermal value changes or not. */
Signature · 1 line
2.55.0