mbox series

[0/5] PCI hotplug cleanups

Message ID cover.1740501868.git.lukas@wunner.de (mailing list archive)
Headers show
Series PCI hotplug cleanups | expand

Message

Lukas Wunner Feb. 25, 2025, 5:06 p.m. UTC
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(-)