aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/rpadlpar_core.c
diff options
context:
space:
mode:
authorRahul Krishnan <mrahul.krishnan@gmail.com>2016-12-24 15:08:00 +0530
committerBjorn Helgaas <bhelgaas@google.com>2017-01-11 14:53:59 -0600
commit63d182abd71cb47cee4adb8dd2afd71d987794d5 (patch)
tree9d14d90681d37d5bcd95d0c54d463a1419c16ee4 /drivers/pci/hotplug/rpadlpar_core.c
parentLinux 4.10-rc1 (diff)
downloadlinux-dev-63d182abd71cb47cee4adb8dd2afd71d987794d5.tar.xz
linux-dev-63d182abd71cb47cee4adb8dd2afd71d987794d5.zip
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>
Diffstat (limited to 'drivers/pci/hotplug/rpadlpar_core.c')
-rw-r--r--drivers/pci/hotplug/rpadlpar_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug/rpadlpar_core.c
index c614ff7c3bc3..3f93a4e79595 100644
--- a/drivers/pci/hotplug/rpadlpar_core.c
+++ b/drivers/pci/hotplug/rpadlpar_core.c
@@ -463,7 +463,6 @@ static inline int is_dlpar_capable(void)
int __init rpadlpar_io_init(void)
{
- int rc = 0;
if (!is_dlpar_capable()) {
printk(KERN_WARNING "%s: partition not DLPAR capable\n",
@@ -471,8 +470,7 @@ int __init rpadlpar_io_init(void)
return -EPERM;
}
- rc = dlpar_sysfs_init();
- return rc;
+ return dlpar_sysfs_init();
}
void rpadlpar_io_exit(void)