vxlan: fix a shadow local variable
Subsystems (2)
PATCH 1/1 vxlan: fix a shadow local variable
Commit 79b16aadea32cce077
("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 <[email protected]>
Signed-off-by Cong Wang <[email protected]>
--- drivers/net/vxlan.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/vxlan.c +0 -1
@@ -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;
Signature · 1 line
1.8.3.1
From: Cong Wang <[email protected]>
Date: Wed, 8 Apr 2015 10:17:58 -0700
Quoted 6 lines
Commit
79b16aadea32cce077
("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 <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied.