projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce7d89
)
PCI: rpadlpar: Remove unnecessary return statement
author
Rahul Krishnan
<mrahul.krishnan@gmail.com>
Sat, 24 Dec 2016 09:38:00 +0000
(15:08 +0530)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 11 Jan 2017 20:53:59 +0000
(14:53 -0600)
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>
drivers/pci/hotplug/rpadlpar_core.c
patch
|
blob
|
history
diff --git
a/drivers/pci/hotplug/rpadlpar_core.c
b/drivers/pci/hotplug/rpadlpar_core.c
index c614ff7c3bc3f9b28a0c48cd4c1c236899477606..3f93a4e795959f33f5cb5e0d2da044b00d29ccbf 100644
(file)
--- 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)