drivers: of: removing assignment of 0 to static variable
authorSaurabh Sengar <saurabh.truth@gmail.com>
Tue, 27 Oct 2015 03:42:01 +0000 (09:12 +0530)
committerRob Herring <robh@kernel.org>
Fri, 30 Oct 2015 17:04:36 +0000 (12:04 -0500)
no need to initialise static variable with 0, hence correcting it.

Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c

index 196e449fc85302602fa9f3cc560c5a92b2718add..d2430298a309a86d3f2110623d3728b9dedb228f 100644 (file)
@@ -184,7 +184,7 @@ static void * unflatten_dt_node(const void *blob,
        struct property *pp, **prev_pp = NULL;
        const char *pathp;
        unsigned int l, allocl;
-       static int depth = 0;
+       static int depth;
        int old_depth;
        int offset;
        int has_name = 0;