Skip to content

Commit

Permalink
powerpc/4xx: Delete an unnecessary return statement in two functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Elfring authored and Michael Ellerman committed Dec 21, 2018
1 parent a8d5dad commit ae6263c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions arch/powerpc/platforms/4xx/ocm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/4xx/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit ae6263c

Please sign in to comment.