net: ipa: always use transaction IDs instead of lists
authorAlex Elder <elder@linaro.org>
Tue, 6 Sep 2022 17:19:38 +0000 (12:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2022 10:45:25 +0000 (11:45 +0100)
commit0c126ec3ddcc81448315e73d196a5a2f42cfd6b4
tree4eab0be4c2e40f6f01cca7587f9bd80eecd19e71
parent6fff926141416a971fcdf7fb71fff404ee53ad47
net: ipa: always use transaction IDs instead of lists

In gsi_channel_trans_complete(), use the completed and pending IDs
to determine whether there are any transactions in completed state.

Similarly, in gsi_channel_trans_cancel_pending(), use the pending
and committed IDs to mark pending transactions cancelled.  Rearrange
the logic a bit there for a simpler result.

This removes the only user of list_last_entry_or_null(), so get rid
of that macro.

Remove the temporary warnings added by the previous commit.

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