aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade
diff options
context:
space:
mode:
authorRick Jones <rick.jones2@hp.com>2011-10-07 19:13:28 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-07 19:13:28 -0400
commit8b0c11679fd37522d8d34a76101319a085d80912 (patch)
treeb4cd7e2d2e623df5107554e58ea20bd18dcf88fa /drivers/net/ethernet/brocade
parent1d0861acfb24d0ca0661ff5a156b992b2c589458 (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/brocade')
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad_ethtool.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c
index ac6b49561bf0..fd3dcc1e9145 100644
--- a/drivers/net/ethernet/brocade/bna/bnad_ethtool.c
+++ b/drivers/net/ethernet/brocade/bna/bnad_ethtool.c
@@ -419,13 +419,9 @@ bnad_get_ringparam(struct net_device *netdev,
419 struct bnad *bnad = netdev_priv(netdev); 419 struct bnad *bnad = netdev_priv(netdev);
420 420
421 ringparam->rx_max_pending = BNAD_MAX_RXQ_DEPTH; 421 ringparam->rx_max_pending = BNAD_MAX_RXQ_DEPTH;
422 ringparam->rx_mini_max_pending = 0;
423 ringparam->rx_jumbo_max_pending = 0;
424 ringparam->tx_max_pending = BNAD_MAX_TXQ_DEPTH; 422 ringparam->tx_max_pending = BNAD_MAX_TXQ_DEPTH;
425 423
426 ringparam->rx_pending = bnad->rxq_depth; 424 ringparam->rx_pending = bnad->rxq_depth;
427 ringparam->rx_mini_max_pending = 0;
428 ringparam->rx_jumbo_max_pending = 0;
429 ringparam->tx_pending = bnad->txq_depth; 425 ringparam->tx_pending = bnad->txq_depth;
430} 426}
431 427