USB: EHCI: consolidate code in ehci_urb_dequeue()
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 22 Mar 2013 17:31:29 +0000 (13:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:35:05 +0000 (13:35 -0700)
commit7655e3160c78a18c2ecf7bf4dee0bbfe58575c7f
treebf32c4068914e6c3054ba35dc003a9818c0dfc56
parent7bc782d73c7db042ecc965866b8c1c2b7d6e93d6
USB: EHCI: consolidate code in ehci_urb_dequeue()

This patch (as1668) consolidates two nearly identical code paths in
ehci_urb_dequeue().  The test for !qh can be removed because it will
never succeed; the fact that usb_hcd_check_unlink_urb() returned 0
means that urb must be queued and therefore urb->hcpriv must point to
a QH.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c