Skip to content

Commit

Permalink
of/overlay: Remove unused variable
Browse files Browse the repository at this point in the history
Commit 3e7f762 ("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>
  • Loading branch information
Fabio Estevam authored and Rob Herring committed Mar 10, 2015
1 parent 20aa4d8 commit d3a8916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int of_overlay_apply_single_device_node(struct of_overlay *ov,
struct device_node *target, struct device_node *child)
{
const char *cname;
struct device_node *tchild, *grandchild;
struct device_node *tchild;
int ret = 0;

cname = kbasename(child->full_name);
Expand Down

0 comments on commit d3a8916

Please sign in to comment.