staging: r8188eu: core: remove the unused variable pAdapter
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Thu, 4 Nov 2021 03:22:42 +0000 (08:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Nov 2021 09:02:02 +0000 (10:02 +0100)
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/YYNSAqGgDPhV1IE1@Sauravs-MacBook-Air.local
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_efuse.c

index 03c8431..39c77f6 100644 (file)
@@ -40,10 +40,7 @@ static bool 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;
@@ -162,7 +159,7 @@ u8 efuse_OneByteWrite(struct adapter *pAdapter, u16 addr, u8 data, bool pseudo)
        u8 result;
 
        if (pseudo) {
-               result = Efuse_Write1ByteToFakeContent(pAdapter, addr, data);
+               result = Efuse_Write1ByteToFakeContent(addr, data);
                return result;
        }