Commit 73cfb7b0 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove write-only variables hal_data_8723a.EEPROM[VP]ID

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8048ed5b
......@@ -1217,26 +1217,6 @@ static void _ReadLEDSetting(struct rtw_adapter *Adapter, u8 *PROMContent,
pledpriv->LedStrategy = HW_LED;
}
static void Hal_EfuseParsePIDVID_8723AU(struct rtw_adapter *pAdapter,
u8 *hwinfo, bool AutoLoadFail)
{
struct hal_data_8723a *pHalData = GET_HAL_DATA(pAdapter);
if (AutoLoadFail) {
pHalData->EEPROMVID = 0;
pHalData->EEPROMPID = 0;
} else {
/* VID, PID */
pHalData->EEPROMVID =
le16_to_cpu(*(u16 *)&hwinfo[EEPROM_VID_8723AU]);
pHalData->EEPROMPID =
le16_to_cpu(*(u16 *)&hwinfo[EEPROM_PID_8723AU]);
}
MSG_8723A("EEPROM VID = 0x%4x\n", pHalData->EEPROMVID);
MSG_8723A("EEPROM PID = 0x%4x\n", pHalData->EEPROMPID);
}
static void Hal_EfuseParseMACAddr_8723AU(struct rtw_adapter *padapter,
u8 *hwinfo, bool AutoLoadFail)
{
......@@ -1269,8 +1249,6 @@ static void readAdapterInfo(struct rtw_adapter *padapter)
Hal_InitPGData(padapter, hwinfo);
Hal_EfuseParseIDCode(padapter, hwinfo);
Hal_EfuseParsePIDVID_8723AU(padapter, hwinfo,
pEEPROM->bautoload_fail_flag);
Hal_EfuseParseEEPROMVer(padapter, hwinfo,
pEEPROM->bautoload_fail_flag);
Hal_EfuseParseMACAddr_8723AU(padapter, hwinfo,
......
......@@ -280,10 +280,6 @@ struct hal_data_8723a {
/* EEPROM setting. */
/* */
u8 EEPROMVersion;
u16 EEPROMVID;
u16 EEPROMPID;
u16 EEPROMSVID;
u16 EEPROMSDID;
u8 EEPROMCustomerID;
u8 EEPROMSubCustomerID;
u8 EEPROMRegulatory;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment