hal_mp: fix local variable initialization

hal/hal_mp.c:1072:10: warning: statement will never be executed [-Wswitch-unreachable]
   u1Byte p = 0, i = 0;
This commit is contained in:
Pascal de Bruijn 2019-05-28 14:37:19 +02:00 committed by Icenowy Zheng
parent f4b84229fa
commit 5ca4640a03

View file

@ -1060,6 +1060,8 @@ void mpt_SetRFPath_8703B(PADAPTER pAdapter)
PDM_ODM_T pDM_Odm = &pHalData->odmpriv;
PODM_RF_CAL_T pRFCalibrateInfo = &(pDM_Odm->RFCalibrateInfo);
u1Byte p = 0, i = 0;
ulAntennaTx = pHalData->AntennaTxPath;
ulAntennaRx = pHalData->AntennaRxPath;
@ -1069,7 +1071,6 @@ void mpt_SetRFPath_8703B(PADAPTER pAdapter)
}
switch (pAdapter->mppriv.antenna_tx) {
u1Byte p = 0, i = 0;
case ANTENNA_A: /* Actually path S1 (Wi-Fi) */
{