[ovs-dev] [PATCH v2 1/2] Datapath: Cleanup compat ip6_tunnel.c

Alin Gabriel Serdean aserdean at ovn.org
Thu Jul 19 18:33:02 UTC 2018


Remove double assignment of `ip6_tnl *t`.

Signed-off-by: Alin Gabriel Serdean <aserdean at ovn.org>
Reviewed-by: Yifeng Sun <pkusunyifeng at gmail.com>
Acked-by: Ben Pfaff <blp at ovn.org>
---
v2: No change. Add Ack's
---
 datapath/linux/compat/ip6_tunnel.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/datapath/linux/compat/ip6_tunnel.c b/datapath/linux/compat/ip6_tunnel.c
index 7c6678796..ecec971e2 100644
--- a/datapath/linux/compat/ip6_tunnel.c
+++ b/datapath/linux/compat/ip6_tunnel.c
@@ -316,8 +316,6 @@ static int ip6_tnl_create2(struct net_device *dev)
 	struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
 	int err;
 
-	t = netdev_priv(dev);
-
 	dev->rtnl_link_ops = &ip6_link_ops;
 	err = register_netdevice(dev);
 	if (err < 0)
-- 
2.16.1.windows.1



More information about the dev mailing list