]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: add braces to if/else arms in HalBtc8723b1Ant.c
authorSiwanan Bungtong <horstaufmental@gmail.com>
Fri, 1 May 2026 20:31:21 +0000 (03:31 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:52:30 +0000 (16:52 +0200)
Add missing braces to if/else statements to comply with kernel
coding style and improve readability.

No functional changes.

Signed-off-by: Siwanan Bungtong <horstaufmental@gmail.com>
Link: https://patch.msgid.link/20260501203121.227992-3-horstaufmental@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c

index b3e34f97cfc6b523b79fd08162b130407c444b64..9bef096164fa12dbb4a144c9663a492247a48831 100644 (file)
@@ -1485,12 +1485,13 @@ static void halbtc8723b1ant_PsTdmaCheckForPowerSaveState(
        if (lpsMode) {  /*  already under LPS state */
                if (bNewPsState) {
                        /*  keep state under LPS, do nothing. */
-               } else /*  will leave LPS state, turn off psTdma first */
+               } else /*  will leave LPS state, turn off psTdma first */
                        halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 0);
+               }
        } else {                                                /*  NO PS state */
-               if (bNewPsState) /*  will enter LPS state, turn off psTdma first */
+               if (bNewPsState) /*  will enter LPS state, turn off psTdma first */
                        halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, false, 0);
-               else {
+               else {
                        /*  keep state under NO PS state, do nothing. */
                }
        }