From 075088d056b5d96ecf98f34b3b1803cfc7fa0cd0 Mon Sep 17 00:00:00 2001 From: WANG Cong Date: Wed, 8 Apr 2015 10:17:58 -0700 Subject: [PATCH] vxlan: fix a shadow local variable Commit ef5acd1470988da886 ("udp_tunnel: Pass UDP socket down through udp_tunnel{, 6}_xmit_skb()") introduce 'sk' but we already have one inner 'sk'. Cc: David S. Miller Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- drivers/net/vxlan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 51baac725a48c..682838b48d371 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -1977,7 +1977,6 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev, iptunnel_xmit_stats(err, &dev->stats, dev->tstats); #if IS_ENABLED(CONFIG_IPV6) } else { - struct sock *sk = vxlan->vn_sock->sock->sk; struct dst_entry *ndst; struct flowi6 fl6; u32 flags; -- 2.39.5