OSDN Git Service

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)
commita9bec7ae70c16f003d6138617c8bd305de3b230e
treed8be15530dd2aad43d18b491545a4ad66c1e8f38
parentb93235e68921b9acd38ee309953a3a9808105289
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