PCI: rpadlpar: Remove unnecessary return statement

Remove unnecessary return statement using spatch tool.

Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
This commit is contained in:
Rahul Krishnan 2016-12-24 15:08:00 +05:30 committed by Bjorn Helgaas
parent 7ce7d89f48
commit 63d182abd7
1 changed files with 1 additions and 3 deletions

View File

@ -463,7 +463,6 @@ static inline int is_dlpar_capable(void)
int __init rpadlpar_io_init(void) int __init rpadlpar_io_init(void)
{ {
int rc = 0;
if (!is_dlpar_capable()) { if (!is_dlpar_capable()) {
printk(KERN_WARNING "%s: partition not DLPAR capable\n", printk(KERN_WARNING "%s: partition not DLPAR capable\n",
@ -471,8 +470,7 @@ int __init rpadlpar_io_init(void)
return -EPERM; return -EPERM;
} }
rc = dlpar_sysfs_init(); return dlpar_sysfs_init();
return rc;
} }
void rpadlpar_io_exit(void) void rpadlpar_io_exit(void)