From faab998ca367f829f8e282ce813d1d840cba7c15 Mon Sep 17 00:00:00 2001 From: coypu Date: Fri, 16 Sep 2016 12:46:46 +0300 Subject: [PATCH 09/27] Set but unused --- sys/external/isc/atheros_hal/dist/ah_eeprom_v3.c | 2 -- sys/external/isc/atheros_hal/dist/ar5212/ar2316.c | 3 +-- sys/external/isc/atheros_hal/dist/ar5212/ar2317.c | 7 ++----- sys/external/isc/atheros_hal/dist/ar5212/ar2413.c | 3 +-- sys/external/isc/atheros_hal/dist/ar5212/ar2425.c | 3 +-- 5 files changed, 5 insertions(+), 13 deletions(-) diff --git a/sys/external/isc/atheros_hal/dist/ah_eeprom_v3.c b/sys/external/isc/atheros_hal/dist/ah_eeprom_v3.c index 3a7b0cc..2b854e9 100644 --- a/sys/external/isc/atheros_hal/dist/ah_eeprom_v3.c +++ b/sys/external/isc/atheros_hal/dist/ah_eeprom_v3.c @@ -181,7 +181,6 @@ eepromExpandPower5112(struct ath_hal *ah, EEPROM_POWER_EXPN_5112 *pPowerExpn) { int ii, jj, kk; - int16_t maxPower_t4; EXPN_DATA_PER_XPD_5112 *pExpnXPD; /* ptr to array of info held per channel */ const EEPROM_DATA_PER_CHANNEL_5112 *pCalCh; @@ -218,7 +217,6 @@ eepromExpandPower5112(struct ath_hal *ah, pCalCh->channelValue; pPowerExpn->pDataPerChannel[ii].maxPower_t4 = pCalCh->maxPower_t4; - maxPower_t4 = pPowerExpn->pDataPerChannel[ii].maxPower_t4; for (jj = 0; jj < NUM_XPD_PER_CHANNEL; jj++) pPowerExpn->pDataPerChannel[ii].pDataPerXPD[jj].numPcdacs = 0; diff --git a/sys/external/isc/atheros_hal/dist/ar5212/ar2316.c b/sys/external/isc/atheros_hal/dist/ar5212/ar2316.c index 9bfc482..002b1ed 100644 --- a/sys/external/isc/atheros_hal/dist/ar5212/ar2316.c +++ b/sys/external/isc/atheros_hal/dist/ar5212/ar2316.c @@ -298,13 +298,12 @@ ar2316FillVpdTable(uint32_t pdGainIdx, int16_t Pmin, int16_t Pmax, const int16_t *pwrList, const int16_t *VpdList, uint16_t numIntercepts, uint16_t retVpdList[][64]) { - uint16_t ii, jj, kk; + uint16_t ii, kk; int16_t currPwr = (int16_t)(2*Pmin); /* since Pmin is pwr*2 and pwrList is 4*pwr */ uint32_t idxL, idxR; ii = 0; - jj = 0; if (numIntercepts < 2) return AH_FALSE; diff --git a/sys/external/isc/atheros_hal/dist/ar5212/ar2317.c b/sys/external/isc/atheros_hal/dist/ar5212/ar2317.c index fdf88e3..ca61750 100644 --- a/sys/external/isc/atheros_hal/dist/ar5212/ar2317.c +++ b/sys/external/isc/atheros_hal/dist/ar5212/ar2317.c @@ -275,13 +275,12 @@ ar2317FillVpdTable(uint32_t pdGainIdx, int16_t Pmin, int16_t Pmax, const int16_t *pwrList, const int16_t *VpdList, uint16_t numIntercepts, uint16_t retVpdList[][64]) { - uint16_t ii, jj, kk; + uint16_t ii, kk; int16_t currPwr = (int16_t)(2*Pmin); /* since Pmin is pwr*2 and pwrList is 4*pwr */ uint32_t idxL, idxR; ii = 0; - jj = 0; if (numIntercepts < 2) return AH_FALSE; @@ -605,14 +604,12 @@ ar2317GetMaxPower(struct ath_hal *ah, const RAW_DATA_PER_CHANNEL_2317 *data) { uint32_t ii; uint16_t Pmax=0,numVpd; - uint16_t vpdmax; - + for (ii=0; ii< MAX_NUM_PDGAINS_PER_CHANNEL; ii++) { /* work forwards cuase lowest pdGain for highest power */ numVpd = data->pDataPerPDGain[ii].numVpd; if (numVpd > 0) { Pmax = data->pDataPerPDGain[ii].pwr_t4[numVpd-1]; - vpdmax = data->pDataPerPDGain[ii].Vpd[numVpd-1]; return(Pmax); } } diff --git a/sys/external/isc/atheros_hal/dist/ar5212/ar2413.c b/sys/external/isc/atheros_hal/dist/ar5212/ar2413.c index e069444..90a52cd 100644 --- a/sys/external/isc/atheros_hal/dist/ar5212/ar2413.c +++ b/sys/external/isc/atheros_hal/dist/ar5212/ar2413.c @@ -292,13 +292,12 @@ ar2413FillVpdTable(uint32_t pdGainIdx, int16_t Pmin, int16_t Pmax, const int16_t *pwrList, const uint16_t *VpdList, uint16_t numIntercepts, uint16_t retVpdList[][64]) { - uint16_t ii, jj, kk; + uint16_t ii, kk; int16_t currPwr = (int16_t)(2*Pmin); /* since Pmin is pwr*2 and pwrList is 4*pwr */ uint32_t idxL, idxR; ii = 0; - jj = 0; if (numIntercepts < 2) return AH_FALSE; diff --git a/sys/external/isc/atheros_hal/dist/ar5212/ar2425.c b/sys/external/isc/atheros_hal/dist/ar5212/ar2425.c index e487489..cd9a5a5 100644 --- a/sys/external/isc/atheros_hal/dist/ar5212/ar2425.c +++ b/sys/external/isc/atheros_hal/dist/ar5212/ar2425.c @@ -294,13 +294,12 @@ ar2425FillVpdTable(uint32_t pdGainIdx, int16_t Pmin, int16_t Pmax, uint16_t numIntercepts, uint16_t retVpdList[][64]) { - uint16_t ii, jj, kk; + uint16_t ii, kk; int16_t currPwr = (int16_t)(2*Pmin); /* since Pmin is pwr*2 and pwrList is 4*pwr */ uint32_t idxL, idxR; ii = 0; - jj = 0; if (numIntercepts < 2) return AH_FALSE; -- 2.9.3