From: "Nelson, Shannon" <shannon.nelson@amd.com>
To: Chen Ni <nichen@iscas.ac.cn>,
brett.creeley@amd.com, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] ionic: Convert comma to semicolon
Date: Wed, 4 Sep 2024 08:51:28 -0700 [thread overview]
Message-ID: <bea7d62c-5a2e-4eb1-add4-212f7ea25608@amd.com> (raw)
In-Reply-To: <20240904081728.1353260-1-nichen@iscas.ac.cn>
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>
next prev parent reply other threads:[~2024-09-04 15:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 8:17 Chen Ni
2024-09-04 15:51 ` Nelson, Shannon [this message]
2024-09-07 1:10 ` patchwork-bot+netdevbpf
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=bea7d62c-5a2e-4eb1-add4-212f7ea25608@amd.com \
--to=shannon.nelson@amd.com \
--cc=brett.creeley@amd.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nichen@iscas.ac.cn \
--cc=pabeni@redhat.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 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®