Skip to content

Commit

Permalink
staging: rtl8723bs: core: remove unused local variable padapter
Browse files Browse the repository at this point in the history
Remove the unused variable padapter from Efuse_Write1ByteToFakeContent
This variable is not used in the function.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20211105165330.78524-3-saurav.girepunje@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Saurav-Girepunje authored and gregkh committed Nov 6, 2021
1 parent 8ad75ce commit 8a90ee6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/staging/rtl8723bs/core/rtw_efuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ Efuse_Read1ByteFromFakeContent(u16 Offset, u8 *Value)
}

static bool
Efuse_Write1ByteToFakeContent(
struct adapter *padapter,
u16 Offset,
u8 Value)
Efuse_Write1ByteToFakeContent(u16 Offset, u8 Value)
{
if (Offset >= EFUSE_MAX_HW_SIZE)
return false;
Expand Down Expand Up @@ -288,7 +285,7 @@ u8 efuse_OneByteWrite(struct adapter *padapter, u16 addr, u8 data, bool bPseudoT
u32 efuseValue = 0;

if (bPseudoTest)
return Efuse_Write1ByteToFakeContent(padapter, addr, data);
return Efuse_Write1ByteToFakeContent(addr, data);


/* -----------------e-fuse reg ctrl --------------------------------- */
Expand Down

0 comments on commit 8a90ee6

Please sign in to comment.