Commit 55507aea authored by Krzysztof Wilczynski's avatar Krzysztof Wilczynski Committed by Bjorn Helgaas

PCI: Remove unnecessary returns

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.comSigned-off-by: default avatarKrzysztof Wilczynski <kw@linux.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent b071c1fd
...@@ -630,8 +630,6 @@ static void mtk_pcie_intr_handler(struct irq_desc *desc) ...@@ -630,8 +630,6 @@ static void mtk_pcie_intr_handler(struct irq_desc *desc)
} }
chained_irq_exit(irqchip, desc); chained_irq_exit(irqchip, desc);
return;
} }
static int mtk_pcie_setup_irq(struct mtk_pcie_port *port, static int mtk_pcie_setup_irq(struct mtk_pcie_port *port,
......
...@@ -563,7 +563,6 @@ cleanup_slots(void) ...@@ -563,7 +563,6 @@ cleanup_slots(void)
} }
cleanup_null: cleanup_null:
up_write(&list_rwsem); up_write(&list_rwsem);
return;
} }
int int
......
...@@ -173,7 +173,6 @@ static void pci_print_IRQ_route(void) ...@@ -173,7 +173,6 @@ static void pci_print_IRQ_route(void)
dbg("%d %d %d %d\n", tbus, tdevice >> 3, tdevice & 0x7, tslot); dbg("%d %d %d %d\n", tbus, tdevice >> 3, tdevice & 0x7, tslot);
} }
return;
} }
......
...@@ -1872,8 +1872,6 @@ static void interrupt_event_handler(struct controller *ctrl) ...@@ -1872,8 +1872,6 @@ static void interrupt_event_handler(struct controller *ctrl)
} }
} /* End of FOR loop */ } /* End of FOR loop */
} }
return;
} }
...@@ -1943,8 +1941,6 @@ void cpqhp_pushbutton_thread(struct timer_list *t) ...@@ -1943,8 +1941,6 @@ void cpqhp_pushbutton_thread(struct timer_list *t)
p_slot->state = STATIC_STATE; p_slot->state = STATIC_STATE;
} }
return;
} }
......
...@@ -16,10 +16,7 @@ ...@@ -16,10 +16,7 @@
#ifndef CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM #ifndef CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM
static inline void compaq_nvram_init(void __iomem *rom_start) static inline void compaq_nvram_init(void __iomem *rom_start) { }
{
return;
}
static inline int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl) static inline int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl)
{ {
......
...@@ -473,7 +473,6 @@ int __init rpadlpar_io_init(void) ...@@ -473,7 +473,6 @@ int __init rpadlpar_io_init(void)
void rpadlpar_io_exit(void) void rpadlpar_io_exit(void)
{ {
dlpar_sysfs_exit(); dlpar_sysfs_exit();
return;
} }
module_init(rpadlpar_io_init); module_init(rpadlpar_io_init);
......
...@@ -412,7 +412,6 @@ static void __exit cleanup_slots(void) ...@@ -412,7 +412,6 @@ static void __exit cleanup_slots(void)
pci_hp_deregister(&slot->hotplug_slot); pci_hp_deregister(&slot->hotplug_slot);
dealloc_slot_struct(slot); dealloc_slot_struct(slot);
} }
return;
} }
static int __init rpaphp_init(void) static int __init rpaphp_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment