netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] vxlan: remove unused variable saddr in neigh_reduce
@ 2017-02-20 16:41 Roopa Prabhu
  2017-02-21 17:20 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Roopa Prabhu @ 2017-02-20 16:41 UTC (permalink / raw)
  To: davem; +Cc: netdev, dlstevens

From: Roopa Prabhu <roopa@cumulusnetworks.com>

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>
---
 drivers/net/vxlan.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 87f63f6..556953f 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -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);
-- 
1.7.10.4

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

* Re: [PATCH net-next] vxlan: remove unused variable saddr in neigh_reduce
  2017-02-20 16:41 [PATCH net-next] vxlan: remove unused variable saddr in neigh_reduce Roopa Prabhu
@ 2017-02-21 17:20 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-02-21 17:20 UTC (permalink / raw)
  To: roopa; +Cc: netdev, dlstevens

From: Roopa Prabhu <roopa@cumulusnetworks.com>
Date: Mon, 20 Feb 2017 08:41:16 -0800

> From: Roopa Prabhu <roopa@cumulusnetworks.com>
> 
> 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>

Applied.

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

end of thread, other threads:[~2017-02-21 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-20 16:41 [PATCH net-next] vxlan: remove unused variable saddr in neigh_reduce Roopa Prabhu
2017-02-21 17:20 ` 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).