netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix irlan_eth.c - unused variable 'in_dev' warning
@ 2007-07-22 16:58 Gabriel C
  0 siblings, 0 replies; only message in thread
From: Gabriel C @ 2007-07-22 16:58 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Dag Brattli, netdev

Hi,

I got this warning on current git:

...

net/irda/irlan/irlan_eth.c: In function 'irlan_eth_send_gratuitous_arp':
net/irda/irlan/irlan_eth.c:301: warning: unused variable 'in_dev'

...

This is because CONFIG_INET is not set in my config.


Signed-off-by: Gabriel Craciunescu <nix.or.die@googlemail.com>

---

diff --git a/net/irda/irlan/irlan_eth.c b/net/irda/irlan/irlan_eth.c
index c421521..ea0b21a 100644
--- a/net/irda/irlan/irlan_eth.c
+++ b/net/irda/irlan/irlan_eth.c
@@ -298,6 +298,7 @@ void irlan_eth_flow_indication(void *instance, void *sap, LOCAL_FLOW flow)
  */
 void irlan_eth_send_gratuitous_arp(struct net_device *dev)
 {
+#ifdef CONFIG_INET
 	struct in_device *in_dev;
 
 	/*
@@ -305,7 +306,6 @@ void irlan_eth_send_gratuitous_arp(struct net_device *dev)
 	 * is useful if we have changed access points on the same
 	 * subnet.
 	 */
-#ifdef CONFIG_INET
 	IRDA_DEBUG(4, "IrLAN: Sending gratuitous ARP\n");
 	rcu_read_lock();
 	in_dev = __in_dev_get_rcu(dev);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-22 16:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22 16:58 [PATCH] Fix irlan_eth.c - unused variable 'in_dev' warning Gabriel C

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).