public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Jon Maloy <jmaloy@redhat.com>
Cc: david@gibson.dropbear.id.au, passt-dev@passt.top
Subject: Re: [PATCH] flow: Reduce scope of type_or_state in flow_log__()
Date: Sun, 22 Nov 2026 23:15:17 +0100 (CET)	[thread overview]
Message-ID: <20261122231516.3025646e@elisabeth> (raw)
In-Reply-To: <20261120001529.1440334-1-jmaloy@redhat.com>

On Thu, 19 Nov 2026 19:15:29 -0500
Jon Maloy <jmaloy@redhat.com> wrote:

> Since commit bfbd2deae0c3 ("flow: Handle NULL (unknown) flows in flow
> logging functions"), type_or_state is only used in the branch handling
> non-NULL flows, and cppcheck points out that its scope can be reduced,
> causing 'make cppcheck' to fail. We do that here.
> 
> Fixes: bfbd2deae0c3 ("flow: Handle NULL (unknown) flows in flow logging functions")
> Signed-off-by: Jon Maloy <jmaloy@redhat.com>

See:

  https://archives.passt.top/passt-dev/20261119124916.3150605-1-lvivier@redhat.com/

I applied that one with this Fixes: tag even though the Cppcheck version
I'm using didn't report this, but I would still agree that it's a fix
for most people.

-- 
Stefano


      reply	other threads:[~2026-11-22 22:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  0:15 Jon Maloy
2026-11-22 22:15 ` Stefano Brivio [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=20261122231516.3025646e@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=jmaloy@redhat.com \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).