]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
of/overlay: Remove unused variable
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 3 Mar 2015 13:04:45 +0000 (10:04 -0300)
committerRob Herring <robh@kernel.org>
Tue, 10 Mar 2015 15:34:33 +0000 (10:34 -0500)
Commit 3e7f7626fd49a ("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>
drivers/of/overlay.c

index 406664801cb5045d72959b2decf5924446a4f2a0..dee9270ba5471e730518b0ddc647469c8a52776f 100644 (file)
@@ -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);