Re: [PATCH] staging: rtl8723bs: Remove unnecessary braces
From: Greg Kroah-Hartman
Date: Tue Sep 01 2026 - 06:13:22 EST
On Tue, Aug 25, 2026 at 03:30:37PM +0300, Svyatoslav Nikolenko wrote:
> Fix a checkpatch.pl warning by removing unnecessary braces around a single
> statement block in the rtw_set_oper_ch() function.
>
> Signed-off-by: Svyatoslav Nikolenko <nsvatoslav515@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 c614c0b4c792..d900b946908e 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.47.3
>
>
Someone sent the same change before you, sorry.
greg k-h