fix extraneous return that can cause a memory leak

Submitted by:	phk
MFC after:	1 week
This commit is contained in:
Sam Leffler 2009-09-07 16:12:07 +00:00
parent 518de5f837
commit d5c613bdb2

View File

@ -1759,7 +1759,7 @@ legacyEepromDetach(struct ath_hal *ah)
HAL_EEPROM *ee = AH_PRIVATE(ah)->ah_eeprom;
if (ee->ee_version >= AR_EEPROM_VER4_0 && ee->ee_eepMap == 1)
return freeEepromRawPowerCalInfo5112(ah, ee);
freeEepromRawPowerCalInfo5112(ah, ee);
ath_hal_free(ee);
AH_PRIVATE(ah)->ah_eeprom = AH_NULL;
}