mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
ACPI / hotplug / PCI: Drop redundant checks from check_hotplug_bridge()
Two checks in check_hotplug_bridge() are redundant (they have been done by the caller already), so drop them. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
236e26245a
commit
07bb735378
@ -586,16 +586,10 @@ static void check_hotplug_bridge(struct acpiphp_slot *slot, struct pci_dev *dev)
|
||||
{
|
||||
struct acpiphp_func *func;
|
||||
|
||||
if (!dev->subordinate)
|
||||
return;
|
||||
|
||||
/* quirk, or pcie could set it already */
|
||||
if (dev->is_hotplug_bridge)
|
||||
return;
|
||||
|
||||
if (PCI_SLOT(dev->devfn) != slot->device)
|
||||
return;
|
||||
|
||||
list_for_each_entry(func, &slot->funcs, sibling) {
|
||||
if (PCI_FUNC(dev->devfn) == func->function) {
|
||||
dev->is_hotplug_bridge = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user