All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Xiaofeng Yuan <xiaofengmian@163.com>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: hal: remove unnecessary braces
Date: Tue, 7 Jul 2026 13:26:22 +0200	[thread overview]
Message-ID: <2026070712-pastor-bath-0442@gregkh> (raw)
In-Reply-To: <20260622131719.4241-1-xiaofengmian@163.com>

On Mon, Jun 22, 2026 at 01:17:19PM +0000, Xiaofeng Yuan wrote:
> checkpatch reports two warnings about unnecessary braces in hal_intf.c:
> 
>  - WARNING: braces {} are not necessary for any arm of this
>    statement (rtw_hal_update_ra_mask)
>  - WARNING: braces {} are not necessary for single statement
>    blocks (rtw_hal_dm_watchdog_in_lps)
> 
> Both blocks contain only single statements, so the braces are
> redundant. Remove them to align with kernel coding style.
> 
> Compile tested with CONFIG_RTL8723BS=m.
> 
> Signed-off-by: Xiaofeng Yuan <xiaofengmian@163.com>
> ---
>  drivers/staging/rtl8723bs/hal/hal_intf.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/hal/hal_intf.c b/drivers/staging/rtl8723bs/hal/hal_intf.c
> index 27c0c0198..45634b5e5 100644
> --- a/drivers/staging/rtl8723bs/hal/hal_intf.c
> +++ b/drivers/staging/rtl8723bs/hal/hal_intf.c
> @@ -208,9 +208,8 @@ void rtw_hal_update_ra_mask(struct sta_info *psta, u8 rssi_level)
>  
>  	if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
>  		add_ratid(padapter, psta, rssi_level);
> -	else {
> +	else
>  		UpdateHalRAMask8723B(padapter, psta->mac_id, rssi_level);
> -	}
>  }
>  
>  void rtw_hal_add_ra_tid(struct adapter *padapter, u32 bitmap, u8 *arg, u8 rssi_level)
> @@ -254,9 +253,8 @@ void rtw_hal_dm_watchdog(struct adapter *padapter)
>  
>  void rtw_hal_dm_watchdog_in_lps(struct adapter *padapter)
>  {
> -	if (adapter_to_pwrctl(padapter)->fw_current_in_ps_mode) {
> +	if (adapter_to_pwrctl(padapter)->fw_current_in_ps_mode)
>  		rtl8723b_HalDmWatchDog_in_LPS(padapter); /* this function caller is in interrupt context */
> -	}
>  }
>  
>  void beacon_timing_control(struct adapter *padapter)
> -- 
> 2.43.0
> 
> 

Does not apply to the latest tree :(

  reply	other threads:[~2026-07-07 11:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-22 13:17 [PATCH] staging: rtl8723bs: hal: remove unnecessary braces Xiaofeng Yuan
2026-07-07 11:26 ` Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-03-06 16:11 Gopi Krishna Menon
2026-03-07 20:20 ` Bera Yüzlü

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026070712-pastor-bath-0442@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=xiaofengmian@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.