staging: rtl8192e: clean unnecessary braces warning on r8192E_phy.c
authorDavid Tadokoro <davidbtadokoro@usp.br>
Sun, 28 May 2023 15:40:10 +0000 (12:40 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 May 2023 15:59:29 +0000 (16:59 +0100)
Clean a checkpatch.pl warning of type "braces {} are not necessary for
single statement blocks" on r8192E_phy.c file.

Signed-off-by: David Tadokoro <davidbtadokoro@usp.br>
Link: https://lore.kernel.org/r/20230528154010.3068-1-davidbtadokoro@usp.br
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c

index 61fd84ca58d2e53bddd8d3c71d9171225732f688..641e993aaa86e5ca5e5d636aaf3caf2b2ee4fa19 100644 (file)
@@ -1099,9 +1099,8 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev,
                break;
        }
 
-       if (bResult) {
+       if (bResult)
                priv->rtllib->rf_power_state = rf_power_state;
-       }
 
        priv->set_rf_pwr_state_in_progress = false;
        return bResult;