Skip to content

Commit

Permalink
ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init()
Browse files Browse the repository at this point in the history
'tunnel' was already set at the start of ip6erspan_tap_init().

Fixes: 5a963eb ("ip6_gre: Add ERSPAN native tunnel support")
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexey Kodanev authored and David S. Miller committed Apr 1, 2018
1 parent ce5a453 commit ec12589
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv6/ip6_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,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;
Expand Down

0 comments on commit ec12589

Please sign in to comment.