OSDN Git Service

net: ipa: simplify ipa_endpoint_program()
authorAlex Elder <elder@linaro.org>
Thu, 2 Jul 2020 11:25:37 +0000 (06:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 21:31:20 +0000 (14:31 -0700)
commitfb57c3ea98519f811b37f299e0ac4988a021fe2a
treea8d12cabe11d614075454fc5c4aa6f0e13176d28
parentb07f283ef3d0c97f67e5f446bb027c4456d75f1f
net: ipa: simplify ipa_endpoint_program()

Have functions that write endpoint configuration registers return
immediately if they are not valid for the direction of transfer for
the endpoint.  This allows most of the calls in ipa_endpoint_program()
to be made unconditionally.  Reorder the register writes to match
the order of their definition (based on offset).

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