summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-08-22 05:24:46 +0200
committerBjorn Helgaas <bhelgaas@google.com>2013-08-22 18:47:04 +0200
commitc2996948ac36a9082f27b9ad94dac4c821a9c33d (patch)
treeda7eacb8af784ca903787e01dd2ed4700c70654c /kernel
parentPCI: Remove unnecessary check for pcie_get_mps() failure (diff)
downloadlinux-c2996948ac36a9082f27b9ad94dac4c821a9c33d.tar.xz
linux-c2996948ac36a9082f27b9ad94dac4c821a9c33d.zip
PCI: Simplify MPS test for Downstream Port
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: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions