summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDing Xiang <dingxiang@cmss.chinamobile.com>2020-03-30 13:05:02 +0300
committerRob Herring <robh@kernel.org>2020-04-14 15:59:54 +0300
commit58fb82ccbccca25fd46775731283eb451fc165ba (patch)
tree99cf1119e2774db6f2b5773ab0feaff294e23b1d /drivers
parent133bf33effffd2a1e169a2d639de71db9a98b0e3 (diff)
downloadlinux-58fb82ccbccca25fd46775731283eb451fc165ba.tar.xz
of: of_detach_node() remove unneeded local return variable
rc is unneeded, just return 0. Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/dynamic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c
index 08fd823edac9..fe64430b438a 100644
--- 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);