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/qlogic | |
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/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c | 3 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c index b34fb74d07e3..e09ea83b8c47 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c | |||
@@ -413,9 +413,6 @@ netxen_nic_get_ringparam(struct net_device *dev, | |||
413 | } | 413 | } |
414 | 414 | ||
415 | ring->tx_max_pending = MAX_CMD_DESCRIPTORS; | 415 | ring->tx_max_pending = MAX_CMD_DESCRIPTORS; |
416 | |||
417 | ring->rx_mini_max_pending = 0; | ||
418 | ring->rx_mini_pending = 0; | ||
419 | } | 416 | } |
420 | 417 | ||
421 | static u32 | 418 | static u32 |
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c index 11f4df75e84c..5d8bec283267 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | |||
@@ -418,9 +418,6 @@ qlcnic_get_ringparam(struct net_device *dev, | |||
418 | ring->rx_max_pending = adapter->max_rxd; | 418 | ring->rx_max_pending = adapter->max_rxd; |
419 | ring->rx_jumbo_max_pending = adapter->max_jumbo_rxd; | 419 | ring->rx_jumbo_max_pending = adapter->max_jumbo_rxd; |
420 | ring->tx_max_pending = MAX_CMD_DESCRIPTORS; | 420 | ring->tx_max_pending = MAX_CMD_DESCRIPTORS; |
421 | |||
422 | ring->rx_mini_max_pending = 0; | ||
423 | ring->rx_mini_pending = 0; | ||
424 | } | 421 | } |
425 | 422 | ||
426 | static u32 | 423 | static u32 |