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/atheros | |
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/atheros')
-rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl1.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c index 43511ab8dd27..7381a49fefb4 100644 --- a/drivers/net/ethernet/atheros/atlx/atl1.c +++ b/drivers/net/ethernet/atheros/atlx/atl1.c | |||
@@ -3473,12 +3473,8 @@ static void atl1_get_ringparam(struct net_device *netdev, | |||
3473 | 3473 | ||
3474 | ring->rx_max_pending = ATL1_MAX_RFD; | 3474 | ring->rx_max_pending = ATL1_MAX_RFD; |
3475 | ring->tx_max_pending = ATL1_MAX_TPD; | 3475 | ring->tx_max_pending = ATL1_MAX_TPD; |
3476 | ring->rx_mini_max_pending = 0; | ||
3477 | ring->rx_jumbo_max_pending = 0; | ||
3478 | ring->rx_pending = rxdr->count; | 3476 | ring->rx_pending = rxdr->count; |
3479 | ring->tx_pending = txdr->count; | 3477 | ring->tx_pending = txdr->count; |
3480 | ring->rx_mini_pending = 0; | ||
3481 | ring->rx_jumbo_pending = 0; | ||
3482 | } | 3478 | } |
3483 | 3479 | ||
3484 | static int atl1_set_ringparam(struct net_device *netdev, | 3480 | static int atl1_set_ringparam(struct net_device *netdev, |