mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
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>
This commit is contained in:
parent
133bf33eff
commit
58fb82ccbc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user