OSDN Git Service

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)
commit9af5ccf32383005070092e51b15cee51584323c0
tree60206c979aa98a925728750ef3fb8fe5ab679f1a
parentd5bc5015eb9d64cbd14e467db1a56db1472d0d6c
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