staging: r8188eu: efuse_WordEnableDataRead is not used

The efuse_WordEnableDataRead function is not used and can be removed.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211125151436.5895-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Martin Kaiser 2021-11-25 16:14:32 +01:00 committed by Greg Kroah-Hartman
parent 2c7517b1ef
commit dfff95efa2
2 changed files with 0 additions and 39 deletions

View File

@ -59,43 +59,6 @@ ReadEFuseByte(
*pbuf = (u8)(value32 & 0xff);
}
/*-----------------------------------------------------------------------------
* Function: efuse_WordEnableDataRead
*
* Overview: Read allowed word in current efuse section data.
*
* Input: NONE
*
* Output: NONE
*
* Return: NONE
*
* Revised History:
* When Who Remark
* 11/16/2008 MHC Create Version 0.
* 11/21/2008 MHC Fix Write bug when we only enable late word.
*
*---------------------------------------------------------------------------*/
void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata)
{
if (!(word_en & BIT(0))) {
targetdata[0] = sourdata[0];
targetdata[1] = sourdata[1];
}
if (!(word_en & BIT(1))) {
targetdata[2] = sourdata[2];
targetdata[3] = sourdata[3];
}
if (!(word_en & BIT(2))) {
targetdata[4] = sourdata[4];
targetdata[5] = sourdata[5];
}
if (!(word_en & BIT(3))) {
targetdata[6] = sourdata[6];
targetdata[7] = sourdata[7];
}
}
/*-----------------------------------------------------------------------------
* Function: EFUSE_ShadowMapUpdate
*

View File

@ -30,8 +30,6 @@
void ReadEFuseByte(struct adapter *adapter, u16 _offset, u8 *pbuf);
void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata);
void EFUSE_ShadowMapUpdate(struct adapter *adapter);
#endif