diff options
author | Rick Jones <rick.jones2@hp.com> | 2011-10-07 19:13:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-07 19:13:28 -0400 |
commit | 8b0c11679fd37522d8d34a76101319a085d80912 (patch) | |
tree | b4cd7e2d2e623df5107554e58ea20bd18dcf88fa /drivers/net/ethernet/3com | |
parent | 1d0861acfb24d0ca0661ff5a156b992b2c589458 (diff) |
net: Remove unnecessary driver assignments of ethtool_ringparam fields to zero
Per comments from Ben Hutchings on a previous patch, sweep the floors
a little removing unnecessary assignments of zero to fields of struct
ethtool_ringparam in driver code supporting ethtool -g.
Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/3com')
-rw-r--r-- | drivers/net/ethernet/3com/typhoon.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c index 607c09e3dc80..11f8858c786d 100644 --- a/drivers/net/ethernet/3com/typhoon.c +++ b/drivers/net/ethernet/3com/typhoon.c | |||
@@ -1148,13 +1148,9 @@ static void | |||
1148 | typhoon_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) | 1148 | typhoon_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) |
1149 | { | 1149 | { |
1150 | ering->rx_max_pending = RXENT_ENTRIES; | 1150 | ering->rx_max_pending = RXENT_ENTRIES; |
1151 | ering->rx_mini_max_pending = 0; | ||
1152 | ering->rx_jumbo_max_pending = 0; | ||
1153 | ering->tx_max_pending = TXLO_ENTRIES - 1; | 1151 | ering->tx_max_pending = TXLO_ENTRIES - 1; |
1154 | 1152 | ||
1155 | ering->rx_pending = RXENT_ENTRIES; | 1153 | ering->rx_pending = RXENT_ENTRIES; |
1156 | ering->rx_mini_pending = 0; | ||
1157 | ering->rx_jumbo_pending = 0; | ||
1158 | ering->tx_pending = TXLO_ENTRIES - 1; | 1154 | ering->tx_pending = TXLO_ENTRIES - 1; |
1159 | } | 1155 | } |
1160 | 1156 | ||