staging: rtl8723au: Remove write-only variables hal_data_8723a.EEPROM[VP]ID
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 3 Sep 2014 12:15:16 +0000 (14:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:44:22 +0000 (13:44 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/usb_halinit.c
drivers/staging/rtl8723au/include/rtl8723a_hal.h

index b49bf33184dedf765d8983a600d6e80c5ba3c028..26be40d7c16d492de67177c435acfbd6da0f3744 100644 (file)
@@ -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,
index 3b0b06d6e41e32cc60a88de7e717e09c439c94a4..ee203a572cb767f410b17daf5789b06dfb22f0b0 100644 (file)
@@ -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;
This page took 0.040698 seconds and 5 git commands to generate.