Skip to content

Commit

Permalink
usb: xhci: merge xhci_queue_bulk_tx and queue_bulk_sg_tx functions
Browse files Browse the repository at this point in the history
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 <alexandr.sky@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alexandr Ivanov authored and Greg Kroah-Hartman committed Apr 26, 2016
1 parent 5f2e5fb commit d251034
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 288 deletions.
Loading

0 comments on commit d251034

Please sign in to comment.