summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2026-03-10 18:05:51 +0300
committerFlorian Westphal <fw@strlen.de>2026-04-08 08:51:27 +0300
commit7970d6aaf710db166de98c5356a260089896fae5 (patch)
tree66b7a68df2689f95d488ab5063ca47f054bded92
parent1f290c497cb644dd3b52e69b2eaa24a5ffb66094 (diff)
downloadlinux-7970d6aaf710db166de98c5356a260089896fae5.tar.xz
netfilter: nf_conntrack_sip: remove net variable shadowing
net is already set, derived from nf_conn. I don't see how the device could be living in a different netns than the conntrack entry. Remove the extra variable and re-use existing one. Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--net/netfilter/nf_conntrack_sip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_sip.c b/net/netfilter/nf_conntrack_sip.c
index 939502ff7c87..182cfb119448 100644
--- a/net/netfilter/nf_conntrack_sip.c
+++ b/net/netfilter/nf_conntrack_sip.c
@@ -869,9 +869,8 @@ static int set_expected_rtp_rtcp(struct sk_buff *skb, unsigned int protoff,
saddr = &ct->tuplehash[!dir].tuple.src.u3;
} else if (sip_external_media) {
struct net_device *dev = skb_dst(skb)->dev;
- struct net *net = dev_net(dev);
- struct flowi fl;
struct dst_entry *dst = NULL;
+ struct flowi fl;
memset(&fl, 0, sizeof(fl));