Message ID | 0f6a7e20c358ac4d3add6076cc6011166edb1999.1628957100.git.aakashhemadri123@gmail.com |
---|---|
State | New |
Headers | show |
Series | Fix checkpatch.pl WARNINGS | expand |
diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c index a9678589ed23..8d1a983027b7 100644 --- a/drivers/pci/slot.c +++ b/drivers/pci/slot.c @@ -323,7 +323,7 @@ void pci_destroy_slot(struct pci_slot *slot) } EXPORT_SYMBOL_GPL(pci_destroy_slot); -#if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) +#if IS_ENABLED(CONFIG_HOTPLUG_PCI) #include <linux/pci_hotplug.h> /** * pci_hp_create_module_link - create symbolic link to hotplug driver module
Fix checkpatch.pl WARNING: Prefer IS_ENABLED(CONFIG_HOTPLUG_PCI) over defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com> --- drivers/pci/slot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)