aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireguard/socket.c
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2025-06-17 00:44:10 +0200
committerJakub Kicinski <kuba@kernel.org>2025-06-17 18:18:45 -0700
commit3b7bc938e0ada6a791103faae261dd2a770df86d (patch)
tree1fa2cf3b863507873a1714c3e89f7718127e6087 /drivers/net/wireguard/socket.c
parentnet: ipv4: Add a flags argument to iptunnel_xmit(), udp_tunnel_xmit_skb() (diff)
downloadwireguard-linux-3b7bc938e0ada6a791103faae261dd2a770df86d.tar.xz
wireguard-linux-3b7bc938e0ada6a791103faae261dd2a770df86d.zip
net: ipv4: ipmr: ipmr_queue_xmit(): Drop local variable `dev'
The variable is used for caching of rt->dst.dev. The netdevice referenced therein does not change during the scope of validity of that local. At the same time, the local is only used twice, and each of these uses will end up in a different function in the following patches, further eliminating any use the local could have had. Drop the local altogether and inline the uses. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org> Link: https://patch.msgid.link/c80600a4b51679fe78f429ccb6d60892c2f9e4de.1750113335.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wireguard/socket.c')
0 files changed, 0 insertions, 0 deletions