From: "Ján Tomko" <jtomko@redhat.com>
To: Rodrigo Dias Correa <r@drigo.nl>
Cc: qemu-devel@nongnu.org, jiri@resnulli.us, jasowang@redhat.com
Subject: Re: [PATCH] hw/net/rocker/rocker_of_dpa.c: Remove superfluous error check
Date: Wed, 13 Nov 2024 11:32:34 +0100 [thread overview]
Message-ID: <ZzSAQpHc1l4oKY3k@fedora> (raw)
In-Reply-To: <20241112012612.317020-1-r@drigo.nl>
[-- Attachment #1: Type: text/plain, Size: 1209 bytes --]
On a Tuesday in 2024, Rodrigo Dias Correa wrote:
>of_dpa_cmd_add_acl_ip() is called from a single place, and despite the
>fact that it always returns ROCKER_OK, its return value is still checked
>by the caller.
>Change of_dpa_cmd_add_acl_ip() to return void and remove the superfluous
>check from of_dpa_cmd_add_acl().
>Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2471
>
>Signed-off-by: Rodrigo Dias Correa <r@drigo.nl>
>---
> hw/net/rocker/rocker_of_dpa.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
>diff --git a/hw/net/rocker/rocker_of_dpa.c b/hw/net/rocker/rocker_of_dpa.c
>index 5e16056be6..6d29130ec2 100644
>--- a/hw/net/rocker/rocker_of_dpa.c
>+++ b/hw/net/rocker/rocker_of_dpa.c
>@@ -1635,7 +1635,7 @@ static int of_dpa_cmd_add_multicast_routing(OfDpaFlow *flow,
> return ROCKER_OK;
> }
>
>-static int of_dpa_cmd_add_acl_ip(OfDpaFlowKey *key, OfDpaFlowKey *mask,
>+static void of_dpa_cmd_add_acl_ip(OfDpaFlowKey *key, OfDpaFlowKey *mask,
> RockerTlv **flow_tlvs)
The second line is misalgined.
> {
> key->width = FLOW_KEY_WIDTH(ip.tos);
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Jano
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2024-11-13 10:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 1:26 [PATCH] hw/net/rocker/rocker_of_dpa.c: Remove superfluous error check Rodrigo Dias Correa
2024-11-13 10:32 ` Ján Tomko [this message]
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=ZzSAQpHc1l4oKY3k@fedora \
--to=jtomko@redhat.com \
--cc=jasowang@redhat.com \
--cc=jiri@resnulli.us \
--cc=qemu-devel@nongnu.org \
--cc=r@drigo.nl \
/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.