staging: rtl8723bs: core: remove unused variable pAdapter
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Fri, 5 Nov 2021 16:53:29 +0000 (22:23 +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_Read1ByteFromFakeContent
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-2-saurav.girepunje@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_efuse.c

index 430e2d81924c8478a8abc977fdf5c48160796eb0..bd057e041a0819912ca6a89d3778ae339fa2d81e 100644 (file)
@@ -31,10 +31,7 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN] = {0};
 #define EFUSE_CTRL                     REG_EFUSE_CTRL          /*  E-Fuse Control. */
 
 static bool
-Efuse_Read1ByteFromFakeContent(
-       struct adapter *padapter,
-       u16     Offset,
-       u8 *Value)
+Efuse_Read1ByteFromFakeContent(u16 Offset, u8 *Value)
 {
        if (Offset >= EFUSE_MAX_HW_SIZE)
                return false;
@@ -250,7 +247,7 @@ bool                bPseudoTest)
        u8 readbyte;
 
        if (bPseudoTest)
-               return Efuse_Read1ByteFromFakeContent(padapter, addr, data);
+               return Efuse_Read1ByteFromFakeContent(addr, data);
 
        /*  <20130121, Kordan> For SMIC EFUSE specificatoin. */
        /* 0x34[11]: SW force PGMEN input of efuse to high. (for the bank selected by 0x34[9:8]) */