OSDN Git Service

net: ipa: refactor endpoint loops
authorAlex Elder <elder@linaro.org>
Thu, 27 Oct 2022 12:26:30 +0000 (07:26 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 05:06:47 +0000 (22:06 -0700)
commite359ba89a4aae690fb51d19fc68f23f38435ae39
treea899381d6dc51698e8df2bb575ac1342be4a1724
parent2b87d721999a7591af7a63c1908084b1d59ba4e5
net: ipa: refactor endpoint loops

Change two functions that iterate over all endpoints to use while
loops, using "endpoint_id" as the index variables in both spots.

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