Lu Baolu b64149ca01 usb: xhci: Disable slot even when virt-dev is null
xhci_disable_slot() is a helper for disabling a slot when a device
goes away or recovers from error situations. Currently, it checks
the corespoding virt-dev pointer and returns directly (w/o issuing
disable slot command) if it's null.

This is unnecessary and will cause problems in case where virt-dev
allocation fails and xhci_disable_slot() is called to roll back the
hardware state. Refer to the implementation of xhci_alloc_dev().

This patch removes lines to check virt-dev in xhci_disable_slot().

Fixes: f9e609b82479 ("usb: xhci: Add helper function xhci_disable_slot().")
Cc: Guoqing Zhang <guoqing.zhang@intel.com>
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>
2017-10-05 11:01:57 +02:00
..
2017-08-10 11:31:26 -07:00
2017-03-23 08:13:21 +01:00
2016-11-21 17:33:40 +01:00
2016-12-08 17:50:09 +01:00
2017-03-23 08:13:21 +01:00
2017-03-23 08:13:21 +01:00
2017-04-08 12:17:42 +02:00
2017-01-19 10:37:16 +01:00
2017-08-16 15:26:26 -07:00
2017-08-16 15:26:26 -07:00