Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging: rtl8188eu: clean up the useless code

The two bool variables singletone and carrier_sup are always false
and the following if statement can't be true, these code are useless,
so remove them.

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1605442400-16108-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kaixu Xia and committed by
Greg Kroah-Hartman
9822b904 6b8fb5ec

-7
-7
drivers/staging/rtl8188eu/hal/phy.c
··· 1200 1200 bool pathaok, pathbok; 1201 1201 s32 reg_e94, reg_e9c, reg_ea4, reg_eb4, reg_ebc, reg_ec4; 1202 1202 bool is12simular, is13simular, is23simular; 1203 - bool singletone = false, carrier_sup = false; 1204 1203 u32 iqk_bb_reg_92c[IQK_BB_REG_NUM] = { 1205 1204 rOFDM0_XARxIQImbalance, rOFDM0_XBRxIQImbalance, 1206 1205 rOFDM0_ECCAThreshold, rOFDM0_AGCRSSITable, ··· 1211 1212 is2t = false; 1212 1213 1213 1214 if (!(dm_odm->SupportAbility & ODM_RF_CALIBRATION)) 1214 - return; 1215 - 1216 - if (singletone || carrier_sup) 1217 1215 return; 1218 1216 1219 1217 if (recovery) { ··· 1308 1312 1309 1313 void rtl88eu_phy_lc_calibrate(struct adapter *adapt) 1310 1314 { 1311 - bool singletone = false, carrier_sup = false; 1312 1315 u32 timeout = 2000, timecount = 0; 1313 1316 struct odm_dm_struct *dm_odm = &adapt->HalData->odmpriv; 1314 1317 1315 1318 if (!(dm_odm->SupportAbility & ODM_RF_CALIBRATION)) 1316 - return; 1317 - if (singletone || carrier_sup) 1318 1319 return; 1319 1320 1320 1321 while (*dm_odm->pbScanInProcess && timecount < timeout) {