]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: use a Boolean rather than count when replenishing
authorAlex Elder <elder@linaro.org>
Fri, 5 Feb 2021 22:10:58 +0000 (16:10 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:57:19 +0000 (14:57 -0800)
commit44ad6294258f0bc1dc8f36e6b79001b7e22ac012
tree60206c979aa98a925728750ef3fb8fe5ab679f1a
parent2275b3dfd26e56b904e4cbcba614f7d1c9a7c417
net: ipa: use a Boolean rather than count when replenishing

The count argument to ipa_endpoint_replenish() is only ever 0 or 1,
and always will be (because we always handle each receive buffer in
a single transaction).  Rename the argument to be add_one and change
it to be Boolean.

Update the function description to reflect the current code.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c