staging: rtl8188eu: Remove rtl8188e_ReadEFuse()
authornavin patidar <navin.patidar@gmail.com>
Fri, 20 Jun 2014 14:59:08 +0000 (20:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 16:49:29 +0000 (09:49 -0700)
rtl8188e_ReadEFuse() checks bool bPseudoTest and then calls suitable
function to read Fuse, ReadEFuseByIC() also does same thing.
So use ReadEFuseByIC() and drop rtl8188e_ReadEFuse().

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c

index fdf2acb6a8305e110ca9d9bcbe0cd86ff94ef646..1d6224a4a534c19b8ef64adea44570df5ecaba5b 100644 (file)
@@ -961,16 +961,6 @@ static void ReadEFuse_Pseudo(struct adapter *Adapter, u8 efuseType, u16 _offset,
        Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf, bPseudoTest);
 }
 
-static void rtl8188e_ReadEFuse(struct adapter *Adapter, u8 efuseType,
-                              u16 _offset, u16 _size_byte, u8 *pbuf,
-                              bool bPseudoTest)
-{
-       if (bPseudoTest)
-               ReadEFuse_Pseudo (Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
-       else
-               ReadEFuseByIC(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
-}
-
 /* Do not support BT */
 static void Hal_EFUSEGetEfuseDefinition88E(struct adapter *pAdapter, u8 efuseType, u8 type, void *pOut)
 {
@@ -1849,7 +1839,7 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
 
        /*  Efuse related function */
        pHalFunc->EfusePowerSwitch = &rtl8188e_EfusePowerSwitch;
-       pHalFunc->ReadEFuse = &rtl8188e_ReadEFuse;
+       pHalFunc->ReadEFuse = &ReadEFuseByIC;
        pHalFunc->EFUSEGetEfuseDefinition = &rtl8188e_EFUSE_GetEfuseDefinition;
        pHalFunc->EfuseGetCurrentSize = &rtl8188e_EfuseGetCurrentSize;
        pHalFunc->Efuse_PgPacketRead = &rtl8188e_Efuse_PgPacketRead;