aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Krishnan <[email protected]>2016-12-24 15:08:00 +0530
committerBjorn Helgaas <[email protected]>2017-01-11 14:53:59 -0600
commit63d182abd71cb47cee4adb8dd2afd71d987794d5 (patch)
tree9d14d90681d37d5bcd95d0c54d463a1419c16ee4
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
PCI: rpadlpar: Remove unnecessary return statement
Remove unnecessary return statement using spatch tool. Signed-off-by: Rahul Krishnan <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Tyrel Datwyler <[email protected]>
-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)