From: Martin Kaiser Date: Sun, 6 Feb 2022 16:17:59 +0000 (+0100) Subject: staging: r8188eu: remove debug code to bypass LC calibration X-Git-Tag: howlett/maple/20220722_2~883^2~226 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fa6ffa4a7587288065a9239f69690223a818df94;p=users%2Fjedix%2Flinux-maple.git staging: r8188eu: remove debug code to bypass LC calibration Remove a check before the LC calibration that is always false. Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20220206161809.423031-5-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c b/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c index 27cac9775a90..0c2dbef59197 100644 --- a/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c +++ b/drivers/staging/r8188eu/hal/HalPhyRf_8188e.c @@ -895,15 +895,10 @@ void PHY_IQCalibrate_8188E(struct adapter *adapt, bool recovery) void PHY_LCCalibrate_8188E(struct adapter *adapt) { - bool singletone = false, carrier_sup = false; u32 timeout = 2000, timecount = 0; struct hal_data_8188e *pHalData = &adapt->haldata; struct odm_dm_struct *dm_odm = &pHalData->odmpriv; - /* 20120213 Turn on when continuous Tx to pass lab testing. (required by Edlu) */ - if (singletone || carrier_sup) - return; - while (*dm_odm->pbScanInProcess && timecount < timeout) { mdelay(50); timecount += 50;