projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
133bf33
)
of: of_detach_node() remove unneeded local return variable
author
Ding Xiang
<dingxiang@cmss.chinamobile.com>
Mon, 30 Mar 2020 10:05:02 +0000
(18:05 +0800)
committer
Rob Herring
<robh@kernel.org>
Tue, 14 Apr 2020 12:59:54 +0000
(07:59 -0500)
rc is unneeded, just return 0.
Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/dynamic.c
patch
|
blob
|
history
diff --git
a/drivers/of/dynamic.c
b/drivers/of/dynamic.c
index
08fd823
..
fe64430
100644
(file)
--- a/
drivers/of/dynamic.c
+++ b/
drivers/of/dynamic.c
@@
-286,7
+286,6
@@
int of_detach_node(struct device_node *np)
{
struct of_reconfig_data rd;
unsigned long flags;
- int rc = 0;
memset(&rd, 0, sizeof(rd));
rd.dn = np;
@@
-301,7
+300,7
@@
int of_detach_node(struct device_node *np)
of_reconfig_notify(OF_RECONFIG_DETACH_NODE, &rd);
- return
rc
;
+ return
0
;
}
EXPORT_SYMBOL_GPL(of_detach_node);