xhci: allow TRACE to work with EVENT ring dequeue
authorAdam Wallis <awallis@codeaurora.org>
Thu, 5 Oct 2017 08:21:47 +0000 (11:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2017 09:01:58 +0000 (11:01 +0200)
commit49d5b05e191d4486c125ff00a01fc5e9e7ba452c
treeb4d474933a2d0f7d61bb4799725606e4e5a33fcc
parent0914ea66d24c045cdc4f424342057980e86629cf
xhci: allow TRACE to work with EVENT ring dequeue

inc_deq() currently bails earlier for EVENT rings than the common return
point of the function, due to the fact that EVENT rings do not have
link TRBs. The unfortunate side effect of this is that the very useful
trace_xhci_inc_deq() function is not called/usable for EVENT ring
debug.

This patch provides a refactor by removing the multiple return exit
points into a single return which additionally allows for all rings to
use the trace function.

Signed-off-by: Adam Wallis <awallis@codeaurora.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c