]> git.baikalelectronics.ru Git - kernel.git/commit
usb: host: xhci: unconditionally call xhci_unmap_td_bounce_buffer()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 23 Jan 2017 12:20:14 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 09:59:06 +0000 (10:59 +0100)
commit1038ddc57516ad8668686a1b341e70f6bf0d3cbb
treea4c33ed4a828a6a0e556977aef232f5bb1758ed7
parentf6849a7322249e8666efa68407adf4bdeaa79ba1
usb: host: xhci: unconditionally call xhci_unmap_td_bounce_buffer()

xhci_unmap_td_bounce_buffer() already checks for a valid td->bounce_seg
and bails out early if that's invalid. There's no need to check for this
twice.

Signed-off-by: Felipe Balbi <felipe.balbi@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