powerpc/4xx: Delete an unnecessary return statement in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 11 Jan 2018 17:40:23 +0000 (18:40 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 00:32:49 +0000 (11:32 +1100)
The script "checkpatch.pl" pointed information out like the following.

WARNING: void function return statements are not generally useful

Thus remove such a statement in the affected functions.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/4xx/ocm.c
arch/powerpc/platforms/4xx/pci.c

index 3f2118960094640e13ba60a12eec7236eb29fc3c..f2610a02844a238e391ce4a71fe27e959d9b66d8 100644 (file)
@@ -223,8 +223,6 @@ static void __init ocm_init_node(int count, struct device_node *node)
        INIT_LIST_HEAD(&ocm->c.list);
 
        ocm->ready = 1;
-
-       return;
 }
 
 static int ocm_debugfs_show(struct seq_file *m, void *v)
index d0825f5c5b1bd80eab4f60977773b2b4c1990a57..e6e2adcc7b64ccfae8ad0474c6a845ee28f4e2da 100644 (file)
@@ -1399,7 +1399,6 @@ static void __init ppc_476fpe_pciex_check_link(struct ppc4xx_pciex_port *port)
                printk(KERN_WARNING "PCIE%d: Link up failed\n", port->index);
 
        iounmap(mbase);
-       return;
 }
 
 static struct ppc4xx_pciex_hwops ppc_476fpe_pcie_hwops __initdata =