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

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

index 7342ef5..ed8b39d 100644 (file)
@@ -1542,10 +1542,8 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
        if ((priv->up_first_time == 1) || (priv->being_init_adapter))
                return;
 
-       if (priv->bfirst_after_down) {
-               priv->bfirst_after_down = true;
+       if (priv->bfirst_after_down)
                return;
-       }
 
        tmp1byte = rtl92e_readb(dev, GPI);