Lines 691-704
ath5k_eeprom_free_pcal_info(struct ath5k_hw *ah, int mode)
Link Here
|
691 |
if (!chinfo[pier].pd_curves) |
691 |
if (!chinfo[pier].pd_curves) |
692 |
continue; |
692 |
continue; |
693 |
|
693 |
|
694 |
for (pdg = 0; pdg < ee->ee_pd_gains[mode]; pdg++) { |
694 |
for (pdg = 0; pdg < AR5K_EEPROM_N_PD_CURVES; pdg++) { |
695 |
struct ath5k_pdgain_info *pd = |
695 |
struct ath5k_pdgain_info *pd = |
696 |
&chinfo[pier].pd_curves[pdg]; |
696 |
&chinfo[pier].pd_curves[pdg]; |
697 |
|
697 |
|
698 |
if (pd != NULL) { |
698 |
kfree(pd->pd_step); |
699 |
kfree(pd->pd_step); |
699 |
kfree(pd->pd_pwr); |
700 |
kfree(pd->pd_pwr); |
|
|
701 |
} |
702 |
} |
700 |
} |
703 |
|
701 |
|
704 |
kfree(chinfo[pier].pd_curves); |
702 |
kfree(chinfo[pier].pd_curves); |
705 |
- |
|
|