]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: kill replenish_saved
authorAlex Elder <elder@linaro.org>
Thu, 3 Feb 2022 17:09:18 +0000 (11:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2022 10:16:07 +0000 (10:16 +0000)
commit7a1deaf3fb59ead0a1101f7e80cc2837833dda24
treed8be15530dd2aad43d18b491545a4ad66c1e8f38
parent3efd2c08bddd600a744b2e7cd461f2dc970e0055
net: ipa: kill replenish_saved

The replenish_saved field keeps track of the number of times a new
buffer is added to the backlog when replenishing is disabled.  We
don't really use it though, so there's no need for us to track it
separately.  Whether replenishing is enabled or not, we can simply
increment the backlog.

Get rid of replenish_saved, and initialize and increment the backlog
where it would have otherwise been used.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_endpoint.c
drivers/net/ipa/ipa_endpoint.h