usb: xhci: move process TD code out of the while loop
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Wed, 26 Jun 2024 12:48:32 +0000 (15:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2024 14:08:06 +0000 (16:08 +0200)
commitc43e43e8a7a8ed5ecad9e2d6a7ea89f607d710e8
treef2dc91acc6d40c901c70de28ec4f658479b66824
parent132dcf65fc2d5a308fc44833dbb7f73a211a02e9
usb: xhci: move process TD code out of the while loop

This part is and should only performed once, so it's moved out of the
while loop to improve code readability.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240626124835.1023046-19-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c