diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e03af35843bc..d5de66af46f9 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2597,13 +2597,8 @@ static inline int netif_is_bond_slave(struct net_device *dev) | |||
2597 | 2597 | ||
2598 | extern struct pernet_operations __net_initdata loopback_net_ops; | 2598 | extern struct pernet_operations __net_initdata loopback_net_ops; |
2599 | 2599 | ||
2600 | static inline int dev_ethtool_get_settings(struct net_device *dev, | 2600 | int dev_ethtool_get_settings(struct net_device *dev, |
2601 | struct ethtool_cmd *cmd) | 2601 | struct ethtool_cmd *cmd); |
2602 | { | ||
2603 | if (!dev->ethtool_ops || !dev->ethtool_ops->get_settings) | ||
2604 | return -EOPNOTSUPP; | ||
2605 | return dev->ethtool_ops->get_settings(dev, cmd); | ||
2606 | } | ||
2607 | 2602 | ||
2608 | static inline u32 dev_ethtool_get_rx_csum(struct net_device *dev) | 2603 | static inline u32 dev_ethtool_get_rx_csum(struct net_device *dev) |
2609 | { | 2604 | { |