You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
David S. Miller
parent
1d0861acfb
commit
8b0c11679f
@@ -1344,17 +1344,12 @@ static void bnx2x_get_ringparam(struct net_device *dev,
|
||||
struct bnx2x *bp = netdev_priv(dev);
|
||||
|
||||
ering->rx_max_pending = MAX_RX_AVAIL;
|
||||
ering->rx_mini_max_pending = 0;
|
||||
ering->rx_jumbo_max_pending = 0;
|
||||
|
||||
if (bp->rx_ring_size)
|
||||
ering->rx_pending = bp->rx_ring_size;
|
||||
else
|
||||
ering->rx_pending = MAX_RX_AVAIL;
|
||||
|
||||
ering->rx_mini_pending = 0;
|
||||
ering->rx_jumbo_pending = 0;
|
||||
|
||||
ering->tx_max_pending = MAX_TX_AVAIL;
|
||||
ering->tx_pending = bp->tx_ring_size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user