aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2008-07-08 18:14:04 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-07-11 01:20:33 -0400
commit9280fa5201d7f69b20af4b7efadb5fe8f2f67277 (patch)
tree7faacb4c9888f2d6092caaf67f96a898b376ee99 /drivers/net/igb
parenta88f10ec7a5b3d87cb9372481055340018652389 (diff)
igb: unused variable warning in igb remove
Wrap hw variable declaration in DCA flags to prevent unused variable warning during compilation. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/igb')
-rw-r--r--drivers/net/igb/igb_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 00e2e8d30ba..2a5303c311b 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1360,7 +1360,9 @@ static void __devexit igb_remove(struct pci_dev *pdev)
1360{ 1360{
1361 struct net_device *netdev = pci_get_drvdata(pdev); 1361 struct net_device *netdev = pci_get_drvdata(pdev);
1362 struct igb_adapter *adapter = netdev_priv(netdev); 1362 struct igb_adapter *adapter = netdev_priv(netdev);
1363#ifdef CONFIG_DCA
1363 struct e1000_hw *hw = &adapter->hw; 1364 struct e1000_hw *hw = &adapter->hw;
1365#endif
1364 1366
1365 /* flush_scheduled work may reschedule our watchdog task, so 1367 /* flush_scheduled work may reschedule our watchdog task, so
1366 * explicitly disable watchdog tasks from being rescheduled */ 1368 * explicitly disable watchdog tasks from being rescheduled */