* [PATCH] staging: rtl8723bs: remove unnecessary braces
@ 2026-01-28 15:44 Louis Lesniak
0 siblings, 0 replies; 3+ messages in thread
From: Louis Lesniak @ 2026-01-28 15:44 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, louis.lesniak2
Remove braces from single statement if blocks to adhere to the
Linux kernel coding style.
Signed-off-by: Louis Lesniak <louis.lesniak2@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index 5ffefa506..33734d20d 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -63,11 +63,10 @@ u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta)
break;
case WIRELESS_11B_24N:
case WIRELESS_11BG_24N:
- if (psta->bw_mode == CHANNEL_WIDTH_20) {
+ if (psta->bw_mode == CHANNEL_WIDTH_20)
raid = RATEID_IDX_BGN_20M_1SS_BN;
- } else {
+ else
raid = RATEID_IDX_BGN_40M_1SS;
- }
break;
default:
raid = RATEID_IDX_BGN_40M_2SS;
--
2.50.1 (Apple Git-155)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] staging: rtl8723bs: remove unnecessary braces
@ 2026-03-04 17:19 Zeynep Dicle
2026-03-05 22:33 ` Ethan Tidmore
0 siblings, 1 reply; 3+ messages in thread
From: Zeynep Dicle @ 2026-03-04 17:19 UTC (permalink / raw)
To: gregkh
Cc: broonie, linux-staging, linux-kernel, daniel.baluta, simona.toaca,
Zeynep Dicle
Remove unnecessary braces to obey Linux coding style and also fix
the following checkpatch issue:
WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: Zeynep Dicle <zeynep.dicle.dev@gmail.com>
---
drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c b/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c
index 1df42069b..b0ca46aec 100644
--- a/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c
+++ b/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c
@@ -125,9 +125,8 @@ void odm_ConfigBB_PHY_REG_PG_8723B(
{
if (Addr == 0xfe || Addr == 0xffe)
msleep(50);
- else {
+ else
PHY_StoreTxPowerByRate(pDM_Odm->Adapter, RfPath, Addr, Bitmask, Data);
- }
}
void odm_ConfigBB_PHY_8723B(
@@ -149,9 +148,8 @@ void odm_ConfigBB_PHY_8723B(
udelay(5);
else if (Addr == 0xf9)
udelay(1);
- else {
+ else
PHY_SetBBReg(pDM_Odm->Adapter, Addr, Bitmask, Data);
- }
/* Add 1us delay between BB/RF register setting. */
udelay(1);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: remove unnecessary braces
2026-03-04 17:19 [PATCH] staging: rtl8723bs: remove unnecessary braces Zeynep Dicle
@ 2026-03-05 22:33 ` Ethan Tidmore
0 siblings, 0 replies; 3+ messages in thread
From: Ethan Tidmore @ 2026-03-05 22:33 UTC (permalink / raw)
To: Zeynep Dicle, gregkh
Cc: broonie, linux-staging, linux-kernel, daniel.baluta, simona.toaca
On Wed Mar 4, 2026 at 11:19 AM CST, Zeynep Dicle wrote:
> Remove unnecessary braces to obey Linux coding style and also fix
> the following checkpatch issue:
>
> WARNING: braces {} are not necessary for any arm of this statement
>
> Signed-off-by: Zeynep Dicle <zeynep.dicle.dev@gmail.com>
> ---
LGTM.
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Thanks,
ET
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-05 22:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 17:19 [PATCH] staging: rtl8723bs: remove unnecessary braces Zeynep Dicle
2026-03-05 22:33 ` Ethan Tidmore
-- strict thread matches above, loose matches on Subject: below --
2026-01-28 15:44 Louis Lesniak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox