staging: rtl8723bs: remove braces around single statement in if block
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 30 Apr 2021 14:56:44 +0000 (16:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:37 +0000 (11:19 +0200)
fix following post-commit hook checkatch issue:

WARNING: braces {} are not necessary for single statement blocks
21: FILE: drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:609:
+ if (!bBtHsOn) {
  algorithm =
BT_8723B_1ANT_COEX_ALGO_PANEDR_HID;
  }

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/1c95d3d0d4ccd74d4e97ee496f7a04eadd1f8ff0.1619794331.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c

index 57579d7eab716242af18b490e2526d74c7020374..911d753e51f6dec89d3d0861c846eeda2d8a36ae 100644 (file)
@@ -606,9 +606,9 @@ static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_coexist *pBtCoexist)
                                pBtLinkInfo->bPanExist &&
                                pBtLinkInfo->bA2dpExist
                        ) {
-                               if (!bBtHsOn) {
+                               if (!bBtHsOn)
                                        algorithm = BT_8723B_1ANT_COEX_ALGO_PANEDR_HID;
-                               }
+
                        }
                }
        }