]> git.ipfire.org Git - thirdparty/linux.git/commit
netdevsim: remove redundant branch
authorDennis Chen <dechen@redhat.com>
Wed, 16 Jul 2025 16:57:50 +0000 (12:57 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Jul 2025 01:09:27 +0000 (18:09 -0700)
commita93f38ebff577a8f131c565ac0fa3d281084df3e
tree49cb462c5cc98843414fcd5a4c29279b5b9c84e9
parentffe5aedc439cd59c0fb267c845a733fbb41532de
netdevsim: remove redundant branch

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@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20250716165750.561175-1-dechen@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/hwstats.c