Re: [PATCH] staging: rtl8723bs: fix coding style in HalBtc8723b2Ant.c
From: b9788213
Date: Wed Sep 09 2026 - 08:57:05 EST
On Mon 7 Sep 2026 20:57:57 -0600, Fahmy Hassan wrote:
> Address checkpatch.pl warnings listed in the driver's TODO file:
> remove braces around single-statement if/else arms, wrap function
> calls that exceed the 100 column limit, and move trailing comments
> that pushed lines over the limit onto their own line above the
> statement they document.
...
> - if (bBtHsOn) {
> - } else {
> + if (bBtHsOn)
> + ;
> + else
> algorithm = BT_8723B_2ANT_COEX_ALGO_PANEDR_HID;
> - }
You can use something like
if (!bBtHsOn)
algorithm = BT_8723B_2ANT_COEX_ALGO_PANEDR_HID;
Thanks,
Bera