of/overlay: Remove unused variable
Commit 3e7f7626fd
("of/overlay: Do not generate duplicate nodes") removed
the only use of the 'grandchild' variable, which leads to the following build
warning:
drivers/of/overlay.c: In function 'of_overlay_apply_single_device_node':
drivers/of/overlay.c:89:31: warning: unused variable 'grandchild' [-Wunused-variable]
struct device_node *tchild, *grandchild;
^
Remove this unused variable.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
Родитель
20aa4d8ae8
Коммит
d3a891652a
|
@ -86,7 +86,7 @@ static int of_overlay_apply_single_device_node(struct of_overlay *ov,
|
||||||
struct device_node *target, struct device_node *child)
|
struct device_node *target, struct device_node *child)
|
||||||
{
|
{
|
||||||
const char *cname;
|
const char *cname;
|
||||||
struct device_node *tchild, *grandchild;
|
struct device_node *tchild;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
cname = kbasename(child->full_name);
|
cname = kbasename(child->full_name);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче