diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2009-12-01 14:10:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-03 01:10:15 -0500 |
commit | 95fec16869f22e94ff13dc5731aeba36bc47bbe6 (patch) | |
tree | 3035f33b951069e9cb8ea1df7e7f9fc7ceafcbdb /drivers/net/atl1e | |
parent | ac936929092dc6a5409b627c4c67305ab9b626b3 (diff) |
atl1e: Remove redundant definitions of ethtool operations
These functions provide the default behaviour and do not need to be
set in struct ethtool_ops.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1e')
-rw-r--r-- | drivers/net/atl1e/atl1e_ethtool.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/atl1e/atl1e_ethtool.c b/drivers/net/atl1e/atl1e_ethtool.c index b0fb7254e2cb..bb15c51b9180 100644 --- a/drivers/net/atl1e/atl1e_ethtool.c +++ b/drivers/net/atl1e/atl1e_ethtool.c | |||
@@ -131,11 +131,6 @@ static int atl1e_set_settings(struct net_device *netdev, | |||
131 | return 0; | 131 | return 0; |
132 | } | 132 | } |
133 | 133 | ||
134 | static u32 atl1e_get_tx_csum(struct net_device *netdev) | ||
135 | { | ||
136 | return (netdev->features & NETIF_F_HW_CSUM) != 0; | ||
137 | } | ||
138 | |||
139 | static u32 atl1e_get_msglevel(struct net_device *netdev) | 134 | static u32 atl1e_get_msglevel(struct net_device *netdev) |
140 | { | 135 | { |
141 | #ifdef DBG | 136 | #ifdef DBG |
@@ -393,13 +388,8 @@ static const struct ethtool_ops atl1e_ethtool_ops = { | |||
393 | .get_eeprom_len = atl1e_get_eeprom_len, | 388 | .get_eeprom_len = atl1e_get_eeprom_len, |
394 | .get_eeprom = atl1e_get_eeprom, | 389 | .get_eeprom = atl1e_get_eeprom, |
395 | .set_eeprom = atl1e_set_eeprom, | 390 | .set_eeprom = atl1e_set_eeprom, |
396 | .get_tx_csum = atl1e_get_tx_csum, | ||
397 | .set_tx_csum = ethtool_op_set_tx_hw_csum, | 391 | .set_tx_csum = ethtool_op_set_tx_hw_csum, |
398 | .get_sg = ethtool_op_get_sg, | ||
399 | .set_sg = ethtool_op_set_sg, | 392 | .set_sg = ethtool_op_set_sg, |
400 | #ifdef NETIF_F_TSO | ||
401 | .get_tso = ethtool_op_get_tso, | ||
402 | #endif | ||
403 | .set_tso = ethtool_op_set_tso, | 393 | .set_tso = ethtool_op_set_tso, |
404 | }; | 394 | }; |
405 | 395 | ||