aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/igb')
-rw-r--r--drivers/net/igb/igb_ethtool.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c
index a9c37cb1bd7a..df2d234be229 100644
--- a/drivers/net/igb/igb_ethtool.c
+++ b/drivers/net/igb/igb_ethtool.c
@@ -1836,7 +1836,6 @@ static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
1836static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) 1836static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
1837{ 1837{
1838 struct igb_adapter *adapter = netdev_priv(netdev); 1838 struct igb_adapter *adapter = netdev_priv(netdev);
1839 struct e1000_hw *hw = &adapter->hw;
1840 1839
1841 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) 1840 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE))
1842 return -EOPNOTSUPP; 1841 return -EOPNOTSUPP;
@@ -1845,11 +1844,6 @@ static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
1845 !device_can_wakeup(&adapter->pdev->dev)) 1844 !device_can_wakeup(&adapter->pdev->dev))
1846 return wol->wolopts ? -EOPNOTSUPP : 0; 1845 return wol->wolopts ? -EOPNOTSUPP : 0;
1847 1846
1848 switch (hw->device_id) {
1849 default:
1850 break;
1851 }
1852
1853 /* these settings will always override what we currently have */ 1847 /* these settings will always override what we currently have */
1854 adapter->wol = 0; 1848 adapter->wol = 0;
1855 1849