netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init()
@ 2018-03-30 17:34 Alexey Kodanev
  2018-04-01 18:04 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Kodanev @ 2018-03-30 17:34 UTC (permalink / raw)
  To: netdev; +Cc: William Tu, David Miller, Alexey Kodanev

'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 <alexey.kodanev@oracle.com>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init()
  2018-03-30 17:34 [PATCH net] ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init() Alexey Kodanev
@ 2018-04-01 18:04 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-04-01 18:04 UTC (permalink / raw)
  To: alexey.kodanev; +Cc: netdev, u9012063

From: Alexey Kodanev <alexey.kodanev@oracle.com>
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 <alexey.kodanev@oracle.com>

Applied to net-next.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-01 18:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-30 17:34 [PATCH net] ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init() Alexey Kodanev
2018-04-01 18:04 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).