]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ipa: ipa_stop() does not return an error
authorAlex Elder <elder@linaro.org>
Fri, 9 Apr 2021 18:07:19 +0000 (13:07 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Apr 2021 03:57:25 +0000 (20:57 -0700)
commit077e770f2601e9786331c00aa6f8b02cfdbc7fd9
tree4a70c87ca2fe849b5ed5f34af92740fbbff304c4
parent57f63faf05625db10a49743287d3cbcb820d2afd
net: ipa: ipa_stop() does not return an error

In ipa_modem_stop(), if the modem netdev pointer is non-null we call
ipa_stop().  We check for an error and if one is returned we handle
it.  But ipa_stop() never returns an error, so this extra handling
is unnecessary.  Simplify the code in ipa_modem_stop() based on the
knowledge no error handling is needed at this spot.

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