diff options
author | Vladimir Oltean | 2021-03-10 14:03:47 +0200 |
---|---|---|
committer | David S. Miller | 2021-03-10 13:14:15 -0800 |
commit | c027aa9201eb9af8067282d4b8a7ce7523cd3c8d (patch) | |
tree | de60753594b13c22bea0b9c74ace90c544b206ad /drivers/cpufreq/davinci-cpufreq.c | |
parent | 4b47c0b81ffd9b395b5afc3ef41c69cceb6a8576 (diff) |
net: enetc: simplify callers of enetc_rxbd_next
When we iterate through the BDs in the RX ring, the software producer
index (which is already passed by value to enetc_rxbd_next) lags behind,
and we end up with this funny looking "++i == rx_ring->bd_count" check
so that we drag it after us.
Let's pass the software producer index "i" by reference, so that
enetc_rxbd_next can increment it by itself (mod rx_ring->bd_count),
especially since enetc_rxbd_next has to increment the index anyway.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/cpufreq/davinci-cpufreq.c')
0 files changed, 0 insertions, 0 deletions