Skip to content

Commit 5054276

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8723bs: Remove unused function efuse_WordEnableDataRead
Remove unused function efuse_WordEnableDataRead to shorten code. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/34ae6c921aa8a42407def96360db5b9a7f3dc5b7.1730916582.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8a39380 commit 5054276

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

drivers/staging/rtl8723bs/core/rtw_efuse.c

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -311,47 +311,6 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool bPseudoT
311311
return bResult;
312312
}
313313

314-
/*-----------------------------------------------------------------------------
315-
* Function: efuse_WordEnableDataRead
316-
*
317-
* Overview: Read allowed word in current efuse section data.
318-
*
319-
* Input: NONE
320-
*
321-
* Output: NONE
322-
*
323-
* Return: NONE
324-
*
325-
* Revised History:
326-
* When Who Remark
327-
* 11/16/2008 MHC Create Version 0.
328-
* 11/21/2008 MHC Fix Write bug when we only enable late word.
329-
*
330-
*---------------------------------------------------------------------------*/
331-
void
332-
efuse_WordEnableDataRead(u8 word_en,
333-
u8 *sourdata,
334-
u8 *targetdata)
335-
{
336-
if (!(word_en & BIT(0))) {
337-
targetdata[0] = sourdata[0];
338-
targetdata[1] = sourdata[1];
339-
}
340-
if (!(word_en & BIT(1))) {
341-
targetdata[2] = sourdata[2];
342-
targetdata[3] = sourdata[3];
343-
}
344-
if (!(word_en & BIT(2))) {
345-
targetdata[4] = sourdata[4];
346-
targetdata[5] = sourdata[5];
347-
}
348-
if (!(word_en & BIT(3))) {
349-
targetdata[6] = sourdata[6];
350-
targetdata[7] = sourdata[7];
351-
}
352-
}
353-
354-
355314
u8
356315
Efuse_WordEnableDataWrite(struct adapter *padapter,
357316
u16 efuse_addr,

drivers/staging/rtl8723bs/include/rtw_efuse.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, u8 *data, bool bPseudo
9797
u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool bPseudoTest);
9898

9999
void Efuse_PowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState);
100-
void efuse_WordEnableDataRead(u8 word_en, u8 *sourdata, u8 *targetdata);
101100
u8 Efuse_WordEnableDataWrite(struct adapter *padapter, u16 efuse_addr, u8 word_en, u8 *data, bool bPseudoTest);
102101

103102
u8 EFUSE_Read1Byte(struct adapter *padapter, u16 Address);

0 commit comments

Comments
 (0)