vxlan: remove unused variable saddr in neigh_reduce
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Mon, 20 Feb 2017 16:41:16 +0000 (08:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2017 17:19:21 +0000 (12:19 -0500)
silences the below warning:
    drivers/net/vxlan.c: In function ‘neigh_reduce’:
    drivers/net/vxlan.c:1599:25: warning: variable ‘saddr’ set but not used
    [-Wunused-but-set-variable]

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c

index 87f63f61dcf77e375dfa9c9d4c6b6530fe196cd8..556953f5343720580a9ac44688adb07a70339a44 100644 (file)
@@ -1596,7 +1596,7 @@ static int neigh_reduce(struct net_device *dev, struct sk_buff *skb, __be32 vni)
        struct vxlan_dev *vxlan = netdev_priv(dev);
        struct nd_msg *msg;
        const struct ipv6hdr *iphdr;
-       const struct in6_addr *saddr, *daddr;
+       const struct in6_addr *daddr;
        struct neighbour *n;
        struct inet6_dev *in6_dev;
 
@@ -1605,7 +1605,6 @@ static int neigh_reduce(struct net_device *dev, struct sk_buff *skb, __be32 vni)
                goto out;
 
        iphdr = ipv6_hdr(skb);
-       saddr = &iphdr->saddr;
        daddr = &iphdr->daddr;
 
        msg = (struct nd_msg *)skb_transport_header(skb);