USB: xHCI: handle_tx_event() refactor: finish_td
authorAndiry Xu <andiry.xu@amd.com>
Thu, 22 Jul 2010 22:22:55 +0000 (15:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:41 +0000 (14:35 -0700)
commit4422da61550b2fe5089c5cdc374ceea33e581773
tree66fc42663ff36fc2ab0e078f3cc36473983b45c7
parentb972302b0a13aaddc9e90da2b4b52722e5d0e776
USB: xHCI: handle_tx_event() refactor: finish_td

This patch moves the td universal processing part in handle_tx_event()
into a separate function finish_td().

if finish_td() returns 1, it indicates the urb can be given back.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-ring.c