Browse Source

drivers: of: removing assignment of 0 to static variable

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>
Saurabh Sengar 10 years ago
parent
commit
0b13ea8e26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/of/fdt.c

+ 1 - 1
drivers/of/fdt.c

@@ -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;