• B
    PCI: Simplify MPS test for Downstream Port · c2996948
    Bjorn Helgaas 提交于
    PCIe hotplug bridges are always either Root Ports or Downstream Ports.  No
    other device type can have a PCIe link leading downstream to a slot.
    
    Root Ports don't have an upstream bridge, so "dev->is_hotplug_bridge &&
    dev->bus->self" is true if and only if "dev" is a Downstream Port.  That
    means we can simplify this by looking at the type of "dev" itself, without
    looking upstream at all.
    
    No functional change.
    Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
    c2996948
probe.c 51.0 KB