summaryrefslogtreecommitdiffstats
path: root/drivers/of/fdt.c
diff options
context:
space:
mode:
authorSaurabh Sengar <saurabh.truth@gmail.com>2015-10-27 04:42:01 +0100
committerRob Herring <robh@kernel.org>2015-10-30 18:04:36 +0100
commit0b13ea8e2661822960b59924b02b4a0ebcf22149 (patch)
tree4d549857eac3b87a54a596c3f300e0a85f4b7c0f /drivers/of/fdt.c
parentMerge branch 'all-dtbs-v2' into for-next (diff)
downloadlinux-0b13ea8e2661822960b59924b02b4a0ebcf22149.tar.xz
linux-0b13ea8e2661822960b59924b02b4a0ebcf22149.zip
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>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r--drivers/of/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 196e449fc853..d2430298a309 100644
--- a/drivers/of/fdt.c
+++ b/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;