Commit 58fb82cc authored by Ding Xiang's avatar Ding Xiang Committed by Rob Herring

of: of_detach_node() remove unneeded local return variable

rc is unneeded, just return 0.
Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 133bf33e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment