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)
commitd3a43e66e02571ada527e0ea9e34a786b048849a
tree0faf89fc90a6524ff85e8afa753e813b632bb2d3
parentb7f9696bd1b170dbff44b1b374b1473278bd2c53
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