usb: host: xhci: drop redundant checks
authorSergey Shtylyov <s.shtylyov@omp.ru>
Wed, 16 Feb 2022 09:51:52 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Feb 2022 15:20:46 +0000 (16:20 +0100)
commit133da4b470ecb1d696f07d18753cc482fa0b7580
tree8a2ce0db6a2a117433bd1a5ba3a669d59874b08a
parentcd36facf104afbde7e8fa25cd6f5b6dd9fa97bb2
usb: host: xhci: drop redundant checks

In xhci_endpoint_{disable|reset}() the expression '&vdev->eps[ep_index]'
just cannot be NULL, so the checks have no sense at all...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220216095153.1303105-9-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c