staging: r8188eu: remove unused parameters from _BeaconFunctionEnable()
authorMichael Straube <straube.linux@gmail.com>
Thu, 8 Sep 2022 13:09:12 +0000 (15:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 07:53:01 +0000 (09:53 +0200)
The parameters 'Enable' and 'Linked' of _BeaconFunctionEnable() are
unused. Remove them.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220908130915.8406-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c

index 63c5cec655d5f1b038184389ddfb27dab44bb0c1..a478b83dcbf3d64f56c9efb842f0467168a0070a 100644 (file)
@@ -496,8 +496,7 @@ static int _InitBeaconParameters(struct adapter *Adapter)
        return 0;
 }
 
-static void _BeaconFunctionEnable(struct adapter *Adapter,
-                                 bool Enable, bool Linked)
+static void _BeaconFunctionEnable(struct adapter *Adapter)
 {
        rtw_write8(Adapter, REG_BCN_CTRL, (BIT(4) | BIT(3) | BIT(1)));
 
@@ -1043,7 +1042,7 @@ void SetBeaconRelatedRegisters8188EUsb(struct adapter *adapt)
        rtw_write8(adapt,  REG_RXTSF_OFFSET_CCK, 0x50);
        rtw_write8(adapt, REG_RXTSF_OFFSET_OFDM, 0x50);
 
-       _BeaconFunctionEnable(adapt, true, true);
+       _BeaconFunctionEnable(adapt);
 
        rtw_resume_tx_beacon(adapt);