From 1d3cceea6aa6cc30a052cb8edb27c109cf6b91f2 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 5 Sep 2013 22:14:11 -0500 Subject: [PATCH] rtl8188eu: Fix smatch warnings in hal/HalPhyRf_8188e.c Smatch reports the following: CHECK /home/finger/rtl8188eu/hal/HalPhyRf_8188e.c /home/finger/rtl8188eu/hal/HalPhyRf_8188e.c:1878 PHY_APCalibrate_8188E() info: ignoring unreachable code. Signed-off-by: Larry Finger --- hal/HalPhyRf_8188e.c | 22 ---------------------- include/HalPhyRf_8188e.h | 3 --- 2 files changed, 25 deletions(-) diff --git a/hal/HalPhyRf_8188e.c b/hal/HalPhyRf_8188e.c index 4095d52..fa14930 100644 --- a/hal/HalPhyRf_8188e.c +++ b/hal/HalPhyRf_8188e.c @@ -1869,28 +1869,6 @@ void PHY_LCCalibrate_8188E(struct adapter *adapt) ("LCK:Finish!!!interface %d\n", dm_odm->InterfaceIndex)); } -void PHY_APCalibrate_8188E(struct adapter *adapt, s8 delta) -{ - struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt); - struct odm_dm_struct *dm_odm = &pHalData->odmpriv; - - return; - if (!(dm_odm->SupportAbility & ODM_RF_CALIBRATION)) - return; - -#if FOR_BRAZIL_PRETEST != 1 - if (dm_odm->RFCalibrateInfo.bAPKdone) -#endif - return; - - if (dm_odm->RFType == ODM_2T2R) { - phy_APCalibrate_8188E(adapt, delta, true); - } else { - /* For 88C 1T1R */ - phy_APCalibrate_8188E(adapt, delta, false); - } -} - static void phy_setrfpathswitch_8188e(struct adapter *adapt, bool main, bool is2t) { struct hal_data_8188e *pHalData = GET_HAL_DATA(adapt); diff --git a/include/HalPhyRf_8188e.h b/include/HalPhyRf_8188e.h index fa583f2..00e1fed 100644 --- a/include/HalPhyRf_8188e.h +++ b/include/HalPhyRf_8188e.h @@ -44,9 +44,6 @@ void PHY_IQCalibrate_8188E(struct adapter *Adapter, bool ReCovery); /* LC calibrate */ void PHY_LCCalibrate_8188E(struct adapter *pAdapter); -/* AP calibrate */ -void PHY_APCalibrate_8188E(struct adapter *pAdapter, s8 delta); - void PHY_DigitalPredistortion_8188E(struct adapter *pAdapter); void _PHY_SaveADDARegisters(struct adapter *pAdapter, u32 *ADDAReg,