diff options
author | 2024-04-29 17:02:39 +0300 | |
---|---|---|
committer | 2024-05-01 08:47:14 +0200 | |
commit | 26dffa427f1841ead44bf56415e2c569df0b3a94 (patch) | |
tree | 8eb4d0f9667429af087734a16011393c363b6419 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: xhci: remove 'handling_skipped_tds' from handle_tx_event() (diff) | |
download | wireguard-linux-26dffa427f1841ead44bf56415e2c569df0b3a94.tar.xz wireguard-linux-26dffa427f1841ead44bf56415e2c569df0b3a94.zip |
usb: xhci: replace goto with return when possible in handle_tx_event()
Simplifying the handle_tx_event() function by addressing the complexity
of its while loop. Replaces specific 'goto cleanup' statements with
'return' statements, applicable only where 'ep->skip' is set to 'false',
ensuring loop termination.
The original while loop, combined with 'goto cleanup', adds unnecessary
complexity. This change aims to untangle the loop's logic, facilitating a
more straightforward review of the upcoming comprehensive rework.
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/20240429140245.3955523-13-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions