mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-22 20:43:56 +08:00
xhci: Redundant check in xhci_check_args for xhci->devs
The xhci_hcd->devs is an array of pointers rather than pointer to pointer. Hence this check is not required. Signed-off-by: Sifram Rajas <Sifram Rajas sifram.rajas@gmail.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2ffdea25f0
commit
73ddc2474b
@ -945,8 +945,7 @@ static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev,
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
if (check_virt_dev) {
|
if (check_virt_dev) {
|
||||||
if (!udev->slot_id || !xhci->devs
|
if (!udev->slot_id || !xhci->devs[udev->slot_id]) {
|
||||||
|| !xhci->devs[udev->slot_id]) {
|
|
||||||
printk(KERN_DEBUG "xHCI %s called with unaddressed "
|
printk(KERN_DEBUG "xHCI %s called with unaddressed "
|
||||||
"device\n", func);
|
"device\n", func);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user