usb: xhci: remove duplicate code of interval checking
authorAlexandr Ivanov <alexandr.sky@gmail.com>
Fri, 22 Apr 2016 10:17:11 +0000 (13:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2016 23:08:02 +0000 (16:08 -0700)
commit78140156f47ed8a9b07fd6a5766d03d3d837aaca
tree98218276db0dc9ad1050dbb2ab9563ccda952848
parent75b040ec60a8bf0ef7f69fcfc8dd81c8f75eabc7
usb: xhci: remove duplicate code of interval checking

Move duplicate code from xhci_queue_intr_tx()
and xhci_queue_isoc_tx_prepare() to the check_interval() function.

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>
drivers/usb/host/xhci-ring.c