summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiwanan Bungtong <horstaufmental@gmail.com>2026-05-02 03:31:21 +0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-04 16:52:30 +0200
commit062d449caebb026bb608890e9febac1d83d0f230 (patch)
treee8a03625ae98caaa0ee2a8d51c978442cb3f82b4
parentb684a14b7198e79fcc8e432d5847b10f64952e74 (diff)
staging: rtl8723bs: add braces to if/else arms in HalBtc8723b1Ant.c
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>
-rw-r--r--drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
index b3e34f97cfc6..9bef096164fa 100644
--- a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
+++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
@@ -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. */
}
}