From: Alexey Kodanev Date: Fri, 30 Mar 2018 17:34:33 +0000 (+0300) Subject: ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init() X-Git-Tag: v4.19~1326^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec1258903a13d0255695a07280ae5e32303aa6c5;p=platform%2Fkernel%2Flinux-rpi.git ip6_gre: remove redundant 'tunnel' setting in ip6erspan_tap_init() '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 Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 22e8655..f8a103b 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -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;