[PATCH] staging: rtl8723bs: remove unnecessary braces
From: Dang Vu Duc Hien
Date: Sun Jul 26 2026 - 05:24:57 EST
Fix the checkpatch.pl warning:
"WARNING: braces {} are not necessary for single statement blocks"
in rtw_wlan_util.c.
The if-statement only contains one line of code. Remove the redundant
pair of braces to comply with the kernel coding style.
Signed-off-by: Dang Vu Duc Hien <dvdh12707@xxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index a4de53872..f107304eb 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -256,9 +256,8 @@ inline void rtw_set_oper_ch(struct adapter *adapter, u8 ch)
{
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
- if (dvobj->oper_channel != ch) {
+ if (dvobj->oper_channel != ch)
dvobj->on_oper_ch_time = jiffies;
- }
dvobj->oper_channel = ch;
}
--
2.54.0