Browse Source

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;
Pascal de Bruijn 1 year ago
parent
commit
5ca4640a03
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hal/hal_mp.c

+ 2 - 1
hal/hal_mp.c

@@ -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) */
 				{