OSDN Git Service

usb: xhci: avoid unnecessary calculation
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 23 Jan 2017 12:20:01 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 09:57:35 +0000 (10:57 +0100)
commitfb79a6da459b20554151eed84c991cd9bd35ff15
tree587c59f4035e019ed6da77e9cfd5d6e7a44b5a4d
parent80c479622fb4564c40813c8f752d3fffd4c5be47
usb: xhci: avoid unnecessary calculation

No need to calculate remainder and length_field, if there is
no data phase of a control transfer.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.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