diff options
author | Rahul Krishnan <mrahul.krishnan@gmail.com> | 2016-12-24 15:08:00 +0530 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-01-11 14:53:59 -0600 |
commit | 63d182abd71cb47cee4adb8dd2afd71d987794d5 (patch) | |
tree | 9d14d90681d37d5bcd95d0c54d463a1419c16ee4 /drivers/pci/hotplug | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
download | talos-obmc-linux-63d182abd71cb47cee4adb8dd2afd71d987794d5.tar.gz talos-obmc-linux-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')
-rw-r--r-- | drivers/pci/hotplug/rpadlpar_core.c | 4 |
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) |