net: ipa: move version test inside ipa_endpoint_program_suspend()
authorAlex Elder <elder@linaro.org>
Thu, 2 Jul 2020 11:25:36 +0000 (06:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 21:31:20 +0000 (14:31 -0700)
commitb07f283ef3d0c97f67e5f446bb027c4456d75f1f
tree194cd7f8bf09ef4b18cb1a91b1b0349149ce9208
parentfff899716f88f84afef4c952a3d7b8b48a070c4c
net: ipa: move version test inside ipa_endpoint_program_suspend()

IPA version 4.0+ does not support endpoint suspend.  Put a test at
the top of ipa_endpoint_program_suspend() that returns immediately
if suspend is not supported rather than making that check in the caller.

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