Here's a collection of cleanups for the PCI hotplug core. None of them should result in a behavioral change. Just removal and untangling of ancient, unnecessary code. Lukas Wunner (5): PCI: hotplug: Drop superfluous pci_hotplug_slot_list PCI: hotplug: Drop superfluous try_module_get() calls PCI: hotplug: Drop superfluous NULL pointer checks in has_*_file() PCI: hotplug: Avoid backpointer dereferencing in has_*_file() PCI: hotplug: Inline pci_hp_{create,remove}_module_link() drivers/pci/hotplug/pci_hotplug_core.c | 142 +++++++------------------ drivers/pci/slot.c | 44 -------- include/linux/pci.h | 5 - include/linux/pci_hotplug.h | 2 - 4 files changed, 41 insertions(+), 152 deletions(-) -- 2.43.0