bonding: avoid a warning
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 19 Jul 2010 06:52:36 +0000 (06:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jul 2010 20:34:16 +0000 (13:34 -0700)
drivers/net/bonding/bond_main.c:179:12: warning: ‘disable_netpoll’
defined but not used

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 822808810a1394a1a2b14a6da2dd08fa1ec3f307..20f45cbf961a70c87c3bb2a5ec9f2f1ab27228d8 100644 (file)
@@ -176,7 +176,9 @@ static int arp_ip_count;
 static int bond_mode   = BOND_MODE_ROUNDROBIN;
 static int xmit_hashtype = BOND_XMIT_POLICY_LAYER2;
 static int lacp_fast;
+#ifdef CONFIG_NET_POLL_CONTROLLER
 static int disable_netpoll = 1;
+#endif
 
 const struct bond_parm_tbl bond_lacp_tbl[] = {
 {      "slow",         AD_LACP_SLOW},