Skip to content

Commit d251034

Browse files
SkyRzngregkh
authored andcommitted
usb: xhci: merge xhci_queue_bulk_tx and queue_bulk_sg_tx functions
In drivers/usb/host/xhci-ring.c there are two functions (xhci_queue_bulk_tx and queue_bulk_sg_tx) that are very similar, so a lot of code duplication. This patch merges these functions into to one xhci_queue_bulk_tx. Also counting the needed TRBs is merged and refactored. Signed-off-by: Alexandr Ivanov <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5f2e5fb commit d251034

File tree

2 files changed

+121
-288
lines changed

2 files changed

+121
-288
lines changed

0 commit comments

Comments
 (0)