[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250717115606.GA27043@horms.kernel.org>
Date: Thu, 17 Jul 2025 12:56:06 +0100
From: Simon Horman <horms@...nel.org>
To: Dennis Chen <dechen@...hat.com>
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
linux-kernel@...r.kernel.org, Petr Machata <petrm@...dia.com>
Subject: Re: [PATCH] netdevsim: remove redundant branch
+ Petr
On Wed, Jul 16, 2025 at 12:57:50PM -0400, Dennis Chen wrote:
> bool notify is referenced nowhere else in the function except to check
> whether or not to call rtnl_offload_xstats_notify(). Remove it and move
> the call to the previous branch.
>
> Signed-off-by: Dennis Chen <dechen@...hat.com>
> ---
> drivers/net/netdevsim/hwstats.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Thanks Dennis,
This looks like a nice clean-up to me.
I guess this is an artefact of the development of this code as this pattern
has been present since the code was added by Petr Machata (CCed) in
commit 1a6d7ae7d63c ("netdevsim: Introduce support for L3 offload xstats").
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists