staging: rtl8192e: Remove second initialization of bActuallySet
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 16 Apr 2023 07:19:58 +0000 (09:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 11:55:20 +0000 (13:55 +0200)
Remove second initialization of bActuallySet to shorten code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ebf51fbd56bad4f8fd7fb51fe031f376c3ab6d2c.1681627603.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

index 93504d5..7342ef5 100644 (file)
@@ -1539,8 +1539,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
        enum rt_rf_power_state rf_power_state_to_set;
        bool bActuallySet = false;
 
-       bActuallySet = false;
-
        if ((priv->up_first_time == 1) || (priv->being_init_adapter))
                return;