]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
of: Remove unused variable overlay_symbols
authorFrank Rowand <frank.rowand@am.sony.com>
Sat, 29 Oct 2016 06:26:32 +0000 (23:26 -0700)
committerRob Herring <robh@kernel.org>
Tue, 15 Nov 2016 15:17:18 +0000 (09:17 -0600)
Remove unused pointer to node "__symbols__".

Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/resolver.c

index 53353cc8f2bb69c0f10ec5d7c09cc33febdf516a..783bd09463b54b774545dfbab2a5575fdc129315 100644 (file)
@@ -287,7 +287,7 @@ static int adjust_local_phandle_references(struct device_node *local_fixups,
 int of_resolve_phandles(struct device_node *overlay)
 {
        struct device_node *child, *local_fixups, *refnode;
-       struct device_node *tree_symbols, *overlay_symbols, *overlay_fixups;
+       struct device_node *tree_symbols, *overlay_fixups;
        struct property *prop;
        const char *refpath;
        phandle phandle, phandle_delta;
@@ -317,12 +317,9 @@ int of_resolve_phandles(struct device_node *overlay)
        if (err)
                goto err_out;
 
-       overlay_symbols = NULL;
        overlay_fixups = NULL;
 
        for_each_child_of_node(overlay, child) {
-               if (!of_node_cmp(child->name, "__symbols__"))
-                       overlay_symbols = child;
                if (!of_node_cmp(child->name, "__fixups__"))
                        overlay_fixups = child;
        }