[PATCH net] ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init()

Subsystems: networking [general], networking [ipv4/ipv6], the rest

STALE3119d

2 messages, 2 authors, 2018-04-01 · open the first message on its own page

[PATCH net] ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init()

From: Alexey Kodanev <hidden>
Date: 2018-03-30 17:25:12

'tunnel' was already set at the start of ip6erspan_tap_init().

Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support")
Signed-off-by: Alexey Kodanev <redacted>
---
 net/ipv6/ip6_gre.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c
index 1bbd093..09901be 100644
--- a/net/ipv6/ip6_gre.c
+++ b/net/ipv6/ip6_gre.c
@@ -1757,7 +1757,6 @@ static int ip6erspan_tap_init(struct net_device *dev)
 		dev->mtu -= 8;
 
 	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
-	tunnel = netdev_priv(dev);
 	ip6gre_tnl_link_config(tunnel, 1);
 
 	return 0;
-- 
1.8.3.1

Re: [PATCH net] ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init()

From: David Miller <davem@davemloft.net>
Date: 2018-04-01 18:04:13

From: Alexey Kodanev <redacted>
Date: Fri, 30 Mar 2018 20:34:33 +0300
'tunnel' was already set at the start of ip6erspan_tap_init().

Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support")
Signed-off-by: Alexey Kodanev <redacted>
Applied to net-next.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help