Commit ae88758
usb: xhci: remove 'handling_skipped_tds' from handle_tx_event()
When handle_tx_event() encounters a COMP_MISSED_SERVICE_ERROR or
COMP_NO_PING_RESPONSE_ERROR event, it moves to 'goto cleanup'.
Here, it sets a flag, 'handling_skipped_tds', based on conditions that
exclude these two error events.
Subsequently, the process evaluates the loop that persists as long as
'handling_skipped_tds' remains true. However, since 'trb_comp_code' does
not change after its assignment, if it indicates either of the two error
conditions, the loop terminates immediately.
To simplify this process and enhance clarity, the modification involves
returning immediately upon detecting COMP_MISSED_SERVICE_ERROR or
COMP_NO_PING_RESPONSE_ERROR. This adjustment allows for the direct use of
'ep->skip', removing the necessity for the 'handling_skipped_tds' flag.
Signed-off-by: Niklas Neronin <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 66cb618 commit ae88758
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2587 | 2587 | | |
2588 | 2588 | | |
2589 | 2589 | | |
2590 | | - | |
2591 | 2590 | | |
2592 | 2591 | | |
2593 | 2592 | | |
| |||
2748 | 2747 | | |
2749 | 2748 | | |
2750 | 2749 | | |
2751 | | - | |
| 2750 | + | |
2752 | 2751 | | |
2753 | 2752 | | |
2754 | 2753 | | |
2755 | 2754 | | |
2756 | 2755 | | |
2757 | | - | |
| 2756 | + | |
2758 | 2757 | | |
2759 | 2758 | | |
2760 | 2759 | | |
| |||
2939 | 2938 | | |
2940 | 2939 | | |
2941 | 2940 | | |
2942 | | - | |
2943 | | - | |
2944 | | - | |
2945 | | - | |
2946 | | - | |
| 2941 | + | |
2947 | 2942 | | |
2948 | 2943 | | |
2949 | 2944 | | |
2950 | 2945 | | |
2951 | 2946 | | |
2952 | 2947 | | |
2953 | | - | |
| 2948 | + | |
2954 | 2949 | | |
2955 | 2950 | | |
2956 | 2951 | | |
| |||
0 commit comments