* [PATCH net-next] myri10ge: Convert comma to semicolon
@ 2026-02-10 1:37 Chen Ni
2026-02-11 18:33 ` Jakub Kicinski
0 siblings, 1 reply; 4+ messages in thread
From: Chen Ni @ 2026-02-10 1:37 UTC (permalink / raw)
To: andrew+netdev, davem, edumazet, kuba, pabeni, mingo, tglx,
dave.jiang, lukas, arnd
Cc: netdev, 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/ethernet/myricom/myri10ge/myri10ge.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
index 2f0cdbd4e2ac..d9b5d7999370 100644
--- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
+++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
@@ -688,9 +688,9 @@ static int myri10ge_get_firmware_capabilities(struct myri10ge_priv *mgp)
/* probe for IPv6 TSO support */
mgp->features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_TSO;
- cmd.data0 = 0,
- cmd.data1 = 0,
- cmd.data2 = 0,
+ cmd.data0 = 0;
+ cmd.data1 = 0;
+ cmd.data2 = 0;
status = myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_MAX_TSO6_HDR_SIZE,
&cmd, 0);
if (status == 0) {
@@ -821,9 +821,9 @@ static int myri10ge_change_pause(struct myri10ge_priv *mgp, int pause)
int status, ctl;
ctl = pause ? MXGEFW_ENABLE_FLOW_CONTROL : MXGEFW_DISABLE_FLOW_CONTROL;
- cmd.data0 = 0,
- cmd.data1 = 0,
- cmd.data2 = 0,
+ cmd.data0 = 0;
+ cmd.data1 = 0;
+ cmd.data2 = 0;
status = myri10ge_send_cmd(mgp, ctl, &cmd, 0);
if (status) {
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH net-next] myri10ge: Convert comma to semicolon
2026-02-10 1:37 [PATCH net-next] myri10ge: Convert comma to semicolon Chen Ni
@ 2026-02-11 18:33 ` Jakub Kicinski
2026-02-11 21:07 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Jakub Kicinski @ 2026-02-11 18:33 UTC (permalink / raw)
To: Chen Ni
Cc: andrew+netdev, davem, edumazet, pabeni, mingo, tglx, dave.jiang,
lukas, arnd, netdev, linux-kernel
On Tue, 10 Feb 2026 09:37:33 +0800 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.
>
> Found by inspection.
> No functional change intended.
> Compile tested only.
## Form letter - net-next-closed
We have already submitted our pull request with net-next material for v7.0,
and therefore net-next is closed for new drivers, features, code refactoring
and optimizations. We are currently accepting bug fixes only.
Please repost when net-next reopens after Feb 23rd.
RFC patches sent for review only are obviously welcome at any time.
See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
--
pw-bot: defer
pv-bot: closed
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] myri10ge: Convert comma to semicolon
2026-02-11 18:33 ` Jakub Kicinski
@ 2026-02-11 21:07 ` Arnd Bergmann
2026-02-13 1:54 ` Jakub Kicinski
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2026-02-11 21:07 UTC (permalink / raw)
To: Jakub Kicinski, Chen Ni
Cc: andrew+netdev, David S . Miller, Eric Dumazet, Paolo Abeni,
Ingo Molnar, Thomas Gleixner, Dave Jiang, Lukas Wunner, Netdev,
linux-kernel
On Wed, Feb 11, 2026, at 19:33, Jakub Kicinski wrote:
> On Tue, 10 Feb 2026 09:37:33 +0800 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.
>>
Fixes: fd24173439c0 ("myri10ge: avoid uninitialized variable use")
Acked-by: Arnd Bergmann <arnd@arndb.de>
> ## Form letter - net-next-closed
>
> We have already submitted our pull request with net-next material for v7.0,
> and therefore net-next is closed for new drivers, features, code refactoring
> and optimizations. We are currently accepting bug fixes only.
This is a regression fix for a mistake I made in a patch you merged
for 7.0. This was not very clear since Chen forgot to add a 'Fixes'
tag and labeled it as [net-next] when it should (now) have been
[net].
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH net-next] myri10ge: Convert comma to semicolon
2026-02-11 21:07 ` Arnd Bergmann
@ 2026-02-13 1:54 ` Jakub Kicinski
0 siblings, 0 replies; 4+ messages in thread
From: Jakub Kicinski @ 2026-02-13 1:54 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Chen Ni, andrew+netdev, David S . Miller, Eric Dumazet,
Paolo Abeni, Ingo Molnar, Thomas Gleixner, Dave Jiang,
Lukas Wunner, Netdev, linux-kernel
On Wed, 11 Feb 2026 22:07:56 +0100 Arnd Bergmann wrote:
> > We have already submitted our pull request with net-next material for v7.0,
> > and therefore net-next is closed for new drivers, features, code refactoring
> > and optimizations. We are currently accepting bug fixes only.
>
> This is a regression fix for a mistake I made in a patch you merged
> for 7.0. This was not very clear since Chen forgot to add a 'Fixes'
> tag and labeled it as [net-next] when it should (now) have been
> [net].
Ah, I should have connected the dots.. thanks for chiming in.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-13 1:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10 1:37 [PATCH net-next] myri10ge: Convert comma to semicolon Chen Ni
2026-02-11 18:33 ` Jakub Kicinski
2026-02-11 21:07 ` Arnd Bergmann
2026-02-13 1:54 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox