public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi: brcmfmac: cfg80211: Convert comma to semicolon
@ 2024-09-04  7:46 Chen Ni
  2024-09-04 14:43 ` Arend van Spriel
  2024-09-09 12:31 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2024-09-04  7:46 UTC (permalink / raw)
  To: arend.vanspriel, kvalo, johannes.berg, kees, a, wsa+renesas,
	quic_alokad, marcan, j
  Cc: linux-wireless, brcm80211, brcm80211-dev-list.pdl, linux-kernel,
	Chen Ni

Replace comma between expressions with semicolons.

Using a ',' in place of a ';' can have unintended side effects.
Although that is not the case here, it is seems best to use ';'
unless ',' is intended.

Found by inspection.
No functional change intended.
Compile tested only.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 815f6b3c79fc..349aa3439502 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -1135,7 +1135,7 @@ static void brcmf_escan_prep(struct brcmf_cfg80211_info *cfg,
 		offset = offsetof(struct brcmf_scan_params_v2_le, channel_list) +
 				n_channels * sizeof(u16);
 		offset = roundup(offset, sizeof(u32));
-		length += sizeof(ssid_le) * n_ssids,
+		length += sizeof(ssid_le) * n_ssids;
 		ptr = (char *)params_le + offset;
 		for (i = 0; i < n_ssids; i++) {
 			memset(&ssid_le, 0, sizeof(ssid_le));
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] wifi: brcmfmac: cfg80211: Convert comma to semicolon
  2024-09-04  7:46 [PATCH] wifi: brcmfmac: cfg80211: Convert comma to semicolon Chen Ni
@ 2024-09-04 14:43 ` Arend van Spriel
  2024-09-09 12:31 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Arend van Spriel @ 2024-09-04 14:43 UTC (permalink / raw)
  To: Chen Ni, kvalo, johannes.berg, kees, a, wsa+renesas, quic_alokad,
	marcan, j
  Cc: linux-wireless, brcm80211, brcm80211-dev-list.pdl, linux-kernel

On 9/4/2024 9:46 AM, Chen Ni wrote:
> Replace comma between expressions with semicolons.
> 
> Using a ',' in place of a ';' can have unintended side effects.
> Although that is not the case here, it is seems best to use ';'
> unless ',' is intended.

Almost certainly not intended or at least I can not think of a reason 
for that construct here so without further ado ....
> Found by inspection.
> No functional change intended.
> Compile tested only.

Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] wifi: brcmfmac: cfg80211: Convert comma to semicolon
  2024-09-04  7:46 [PATCH] wifi: brcmfmac: cfg80211: Convert comma to semicolon Chen Ni
  2024-09-04 14:43 ` Arend van Spriel
@ 2024-09-09 12:31 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2024-09-09 12:31 UTC (permalink / raw)
  To: Chen Ni
  Cc: arend.vanspriel, johannes.berg, kees, a, wsa+renesas, quic_alokad,
	marcan, j, linux-wireless, brcm80211, brcm80211-dev-list.pdl,
	linux-kernel, Chen Ni

Chen Ni <nichen@iscas.ac.cn> wrote:

> Replace comma between expressions with semicolons.
> 
> Using a ',' in place of a ';' can have unintended side effects.
> Although that is not the case here, it is seems best to use ';'
> unless ',' is intended.
> 
> Found by inspection.
> No functional change intended.
> Compile tested only.
> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>

Patch applied to wireless-next.git, thanks.

4f0568492fc4 wifi: brcmfmac: cfg80211: Convert comma to semicolon

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20240904074637.1352864-1-nichen@iscas.ac.cn/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-09 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04  7:46 [PATCH] wifi: brcmfmac: cfg80211: Convert comma to semicolon Chen Ni
2024-09-04 14:43 ` Arend van Spriel
2024-09-09 12:31 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox