usb: xhci: add 'goto' for halted endpoint check in handle_tx_event()
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Wed, 26 Jun 2024 12:48:33 +0000 (15:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2024 14:08:06 +0000 (16:08 +0200)
commit1b349f214ac7b87fd2b854db0d4ce34895776642
treed1593a5a90b25a897c2f587b6ec97cd546fe6737
parentc43e43e8a7a8ed5ecad9e2d6a7ea89f607d710e8
usb: xhci: add 'goto' for halted endpoint check in handle_tx_event()

Add 'goto' statement for a halted endpoint, streamlining the error
handling process. In future handle_tx_event() changes this 'goto'
statement will have more uses.

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-20-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c