Skip to contentSkip to conversation

Staging: rtl8188eu: Remove dead code

PATCH New Vatika Harlalka 1 participant 1 message Feb 27, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8188eu: Remove dead code

The if condition is always false and the variables are unused elsewhere in the code.

---
 drivers/staging/rtl8188eu/hal/phy.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rtl8188eu/hal/phy.c +0 -3
index b6b6b0b..7dbdbe7 100644
@@ -1456,15 +1456,12 @@ void rtl88eu_phy_iq_calibrate(struct adapter *adapt, bool recovery)
 
 void rtl88eu_phy_lc_calibrate(struct adapter *adapt)
 {
-	bool singletone = false, carrier_sup = false;
 	u32 timeout = 2000, timecount = 0;
 	struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt);
 	struct odm_dm_struct *dm_odm = &hal_data->odmpriv;
 
 	if (!(dm_odm->SupportAbility & ODM_RF_CALIBRATION))
 		return;
-	if (singletone || carrier_sup)
-		return;
 
 	while (*(dm_odm->pbScanInProcess) && timecount < timeout) {
 		mdelay(50);
Signature · 1 line
1.9.1