]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: drop an unneeded transaction reference
authorAlex Elder <elder@linaro.org>
Thu, 19 May 2022 15:12:11 +0000 (10:12 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2022 10:12:23 +0000 (11:12 +0100)
commit9a149df9bb8acbe101826a8d6aaf0790fdb755bd
tree3ab7204e6d0231f1a3df3f2aa171ff6c6ca376fe
parent22b0f8228ab1214a8aa9f5f5c716b7262186f5a8
net: ipa: drop an unneeded transaction reference

In gsi_channel_update(), a reference count is taken on the last
completed transaction "to keep it from completing" before we give
the event back to the hardware.  Completion processing for that
transaction (and any other "new" ones) will not occur until after
this function returns, so there's no risk it completing early.  So
there's no need to take and drop the additional transaction
reference.

Use local variables in the call to gsi_evt_ring_doorbell().

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