Skip to contentSkip to conversation

staging: rtl8723bs: remove redundant statements

PATCH New [email protected] 1 participant 1 message Nov 21, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: remove redundant statements

From: Kaixu Xia <[email protected]>

The bool variable is2T is true, so the if statement is redundant. we can directly set the variable bound to 8 and remove the if statement.

---
 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c +1 -6
index 85ea535dd6e9..645f4f2a835e 100644
@@ -1407,14 +1407,9 @@ static bool phy_SimularityCompare_8723B(
 	u32 i, j, diff, SimularityBitMap, bound = 0;
 	u8 final_candidate[2] = {0xFF, 0xFF}; /* for path A and path B */
 	bool bResult = true;
-	bool is2T = true;
 	s32 tmp1 = 0, tmp2 = 0;
 
-	if (is2T)
-		bound = 8;
-	else
-		bound = 4;
-
+	bound = 8;
 	SimularityBitMap = 0;
 
 	for (i = 0; i < bound; i++) {
Signature · 1 line
2.20.0