* [PATCH net-next] ionic: Convert comma to semicolon
@ 2024-09-04 8:17 Chen Ni
2024-09-04 15:51 ` Nelson, Shannon
2024-09-07 1:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2024-09-04 8:17 UTC (permalink / raw)
To: shannon.nelson, brett.creeley, davem, edumazet, kuba, pabeni
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/pensando/ionic/ionic_rx_filter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c b/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c
index 1ee2f285cb42..528114877677 100644
--- a/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c
+++ b/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c
@@ -312,8 +312,8 @@ static int ionic_lif_filter_add(struct ionic_lif *lif,
int err = 0;
ctx.cmd.rx_filter_add = *ac;
- ctx.cmd.rx_filter_add.opcode = IONIC_CMD_RX_FILTER_ADD,
- ctx.cmd.rx_filter_add.lif_index = cpu_to_le16(lif->index),
+ ctx.cmd.rx_filter_add.opcode = IONIC_CMD_RX_FILTER_ADD;
+ ctx.cmd.rx_filter_add.lif_index = cpu_to_le16(lif->index);
spin_lock_bh(&lif->rx_filters.lock);
f = ionic_rx_filter_find(lif, &ctx.cmd.rx_filter_add);
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] ionic: Convert comma to semicolon
2024-09-04 8:17 [PATCH net-next] ionic: Convert comma to semicolon Chen Ni
@ 2024-09-04 15:51 ` Nelson, Shannon
2024-09-07 1:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Nelson, Shannon @ 2024-09-04 15:51 UTC (permalink / raw)
To: Chen Ni, brett.creeley, davem, edumazet, kuba, pabeni
Cc: netdev, linux-kernel
On 9/4/2024 1:17 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.
>
> Found by inspection.
> No functional change intended.
> Compile tested only.
>
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
> drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c b/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c
> index 1ee2f285cb42..528114877677 100644
> --- a/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c
> +++ b/drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c
> @@ -312,8 +312,8 @@ static int ionic_lif_filter_add(struct ionic_lif *lif,
> int err = 0;
>
> ctx.cmd.rx_filter_add = *ac;
> - ctx.cmd.rx_filter_add.opcode = IONIC_CMD_RX_FILTER_ADD,
> - ctx.cmd.rx_filter_add.lif_index = cpu_to_le16(lif->index),
> + ctx.cmd.rx_filter_add.opcode = IONIC_CMD_RX_FILTER_ADD;
> + ctx.cmd.rx_filter_add.lif_index = cpu_to_le16(lif->index);
>
> spin_lock_bh(&lif->rx_filters.lock);
> f = ionic_rx_filter_find(lif, &ctx.cmd.rx_filter_add);
> --
> 2.25.1
>
Thanks for catching that.
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] ionic: Convert comma to semicolon
2024-09-04 8:17 [PATCH net-next] ionic: Convert comma to semicolon Chen Ni
2024-09-04 15:51 ` Nelson, Shannon
@ 2024-09-07 1:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-09-07 1:10 UTC (permalink / raw)
To: Chen Ni
Cc: shannon.nelson, brett.creeley, davem, edumazet, kuba, pabeni,
netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 4 Sep 2024 16:17:28 +0800 you 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.
>
> [...]
Here is the summary with links:
- [net-next] ionic: Convert comma to semicolon
https://git.kernel.org/netdev/net-next/c/62c9f50eabe0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-07 1:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-04 8:17 [PATCH net-next] ionic: Convert comma to semicolon Chen Ni
2024-09-04 15:51 ` Nelson, Shannon
2024-09-07 1:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®