]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Fold queue_set_tr_deq into xhci_queue_new_dequeue_state
authorHans de Goede <hdegoede@redhat.com>
Wed, 20 Aug 2014 13:41:53 +0000 (16:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:46:11 +0000 (21:46 -0700)
commit68858c1c9839e04792b63044cacc043764939503
tree0faf89fc90a6524ff85e8afa753e813b632bb2d3
parent3659b5b5e75bb67c2846f8c01b9df997079f0ba0
xhci: Fold queue_set_tr_deq into xhci_queue_new_dequeue_state

xhci_queue_new_dequeue_state is the only caller of queue_set_tr_deq
and queue_set_tr_deq checks for SET_DEQ_PENDING, where as
xhci_queue_new_dequeue_state sets it which is inconsistent.

Simply fold the 2 into one is a nice cleanup and fixes the inconsistency.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c