]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PCI: Remove unnecessary returns
authorKrzysztof Wilczynski <kw@linux.com>
Sun, 25 Aug 2019 22:10:39 +0000 (00:10 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Aug 2019 19:00:34 +0000 (14:00 -0500)
Remove unnecessary "return" statements at the end of void functions.  No
functional change intended.

Link: https://lore.kernel.org/r/20190825221039.6977-1-kw@linux.com
Link: https://lore.kernel.org/r/20190826095143.21353-1-kw@linux.com
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-mediatek.c
drivers/pci/hotplug/cpci_hotplug_core.c
drivers/pci/hotplug/cpqphp_core.c
drivers/pci/hotplug/cpqphp_ctrl.c
drivers/pci/hotplug/cpqphp_nvram.h
drivers/pci/hotplug/rpadlpar_core.c
drivers/pci/hotplug/rpaphp_core.c

index 80601e1b939eba94f29daa8b5437e54f77b19947..b92ce6ef718e9adb630acd330e3cb4e76ff1d3e5 100644 (file)
@@ -630,8 +630,6 @@ static void mtk_pcie_intr_handler(struct irq_desc *desc)
        }
 
        chained_irq_exit(irqchip, desc);
-
-       return;
 }
 
 static int mtk_pcie_setup_irq(struct mtk_pcie_port *port,
index 603eadf3d96595f942c60d03903772da5f21b61f..d0559d2faf50d9b74f171596ca1ab85d36467b5c 100644 (file)
@@ -563,7 +563,6 @@ cleanup_slots(void)
        }
 cleanup_null:
        up_write(&list_rwsem);
-       return;
 }
 
 int
index 16bbb183695acc020f2478d6499ae3736b419c03..b8aacb41a83c8e87f6b2b35047c3e2791b78cc16 100644 (file)
@@ -173,7 +173,6 @@ static void pci_print_IRQ_route(void)
                dbg("%d %d %d %d\n", tbus, tdevice >> 3, tdevice & 0x7, tslot);
 
        }
-       return;
 }
 
 
index b7f4e1f099d91fa8bf12d52330104b622d548a3f..68de958a9be8d06b1c9d1516d26e6e404a49a11e 100644 (file)
@@ -1872,8 +1872,6 @@ static void interrupt_event_handler(struct controller *ctrl)
                        }
                }               /* End of FOR loop */
        }
-
-       return;
 }
 
 
@@ -1943,8 +1941,6 @@ void cpqhp_pushbutton_thread(struct timer_list *t)
 
                p_slot->state = STATIC_STATE;
        }
-
-       return;
 }
 
 
index 918ff8dbfe62189be3a7025bc37012699adadf15..70e879b6a23f0832ab44e958a973191d29e64fe6 100644 (file)
 
 #ifndef CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM
 
-static inline void compaq_nvram_init(void __iomem *rom_start)
-{
-       return;
-}
+static inline void compaq_nvram_init(void __iomem *rom_start) { }
 
 static inline int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl)
 {
index 182f9e3443eef83a4a6b455161f6e00d2029b4fe..977946e4e6132f02737b9af651a2808ebccb06d1 100644 (file)
@@ -473,7 +473,6 @@ int __init rpadlpar_io_init(void)
 void rpadlpar_io_exit(void)
 {
        dlpar_sysfs_exit();
-       return;
 }
 
 module_init(rpadlpar_io_init);
index bcd5d357ca238f9bfcd149ff7605805b9e049cd9..d34a3baf9b3a7c5a4a23eaab80baef864d568dc8 100644 (file)
@@ -412,7 +412,6 @@ static void __exit cleanup_slots(void)
                pci_hp_deregister(&slot->hotplug_slot);
                dealloc_slot_struct(slot);
        }
-       return;
 }
 
 static int __init rpaphp_init(void)