]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: kill unused status exceptions
authorAlex Elder <elder@linaro.org>
Mon, 28 Sep 2020 23:04:39 +0000 (18:04 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 01:34:55 +0000 (18:34 -0700)
commitc32a1cf9d9a3da0fdbc96874677a1df519d31958
tree09b78a6bed78bd703e7d3f6509d63061bf2b0692
parentd8f3459a8c288032314d0dbf556a71b25483b1fc
net: ipa: kill unused status exceptions

Only the deaggregation status exception type is ever actually used.
If any other status exception type is reported we basically ignore
it, and consume the packet.  Remove the unused definitions of status
exception type symbols; they can be added back when we actually
handle them.

Separately, two consecutive if statements test the same condition
near the top of ipa_endpoint_suspend_one().  Instead, use a single
test with a block that combines the previously-separate lines of
code.

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