xhci: remove xhci_check_usb2_port_capability helper
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 29 Apr 2024 14:02:29 +0000 (17:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 May 2024 06:47:14 +0000 (08:47 +0200)
commit6d3bc5e941bf94947937281b20c17cc80202de8b
tree7bac4bb43528b848e9a567acc71321496b2c56bf
parent63a1f8454962a64746a59441687dc2401290326c
xhci: remove xhci_check_usb2_port_capability helper

This helper was only called from one function.
Removing it both reduces lines of code and made it more readable.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240429140245.3955523-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c