aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/hotplug/pciehp.h
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2018-07-19 17:27:35 -0500
committerBjorn Helgaas <helgaas@kernel.org>2018-07-23 17:04:11 -0500
commit6641311df92d171648faeede6ec9ec612d32d15b (patch)
treee27984838abbdba625e7e0342ab16884c1ebb404 /drivers/pci/hotplug/pciehp.h
parentPCI: pciehp: Fix unprotected list iteration in IRQ handler (diff)
downloadwireguard-linux-6641311df92d171648faeede6ec9ec612d32d15b.tar.xz
wireguard-linux-6641311df92d171648faeede6ec9ec612d32d15b.zip
PCI: pciehp: Drop unnecessary NULL pointer check
pciehp_disable_slot() checks if the ctrl attribute of the slot is NULL and bails out if so. However the function is not called prior to the attribute being set in pcie_init_slot(), and pcie_init_slot() is not called if ctrl is NULL. So the check is unnecessary. Drop it. It has been present ever since the driver was introduced in 2004, but it was already unnecessary back then: https://git.kernel.org/tglx/history/c/c16b4b14d980 Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
0 files changed, 0 insertions, 0 deletions