staging: rtl8188eu: hal: rtl8188e_hal_init.c: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 7 Dec 2014 18:16:15 +0000 (19:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 22:04:16 +0000 (14:04 -0800)
Remove the function GetEEPROMSize8188E() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/include/rtl8188e_hal.h

index 7d460eaafa3559faf194b7629cf0b463269aa5e5..3222d8d08b5b2d306ebf1e94ef5d8436c00e6e67 100644 (file)
@@ -242,20 +242,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
        pHalFunc->hal_notch_filter = &hal_notch_filter_8188e;
 }
 
-u8 GetEEPROMSize8188E(struct adapter *padapter)
-{
-       u8 size = 0;
-       u32     cr;
-
-       cr = usb_read16(padapter, REG_9346CR);
-       /*  6: EEPROM used is 93C46, 4: boot from E-Fuse. */
-       size = (cr & BOOT_FROM_EEPROM) ? 6 : 4;
-
-       MSG_88E("EEPROM type is %s\n", size == 4 ? "E-FUSE" : "93C46");
-
-       return size;
-}
-
 /*  */
 /*  */
 /*  LLT R/W/Init function */
index 42ab1d288bdc58413698e4fdde390ecdd28d26a1..b8c42eed98c4f37d7e211b2fbec2b6099d5d0188 100644 (file)
@@ -391,7 +391,6 @@ void rtl8188e_InitializeFirmwareVars(struct adapter *padapter);
 s32 InitLLTTable(struct adapter *padapter, u8 txpktbuf_bndy);
 
 /*  EFuse */
-u8 GetEEPROMSize8188E(struct adapter *padapter);
 void Hal_InitPGData88E(struct adapter *padapter);
 void Hal_EfuseParseIDCode88E(struct adapter *padapter, u8 *hwinfo);
 void Hal_ReadTxPowerInfo88E(struct adapter *padapter, u8 *hwinfo,