[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210803101309.904-1-ohoono.kwon@samsung.com>
Date: Tue, 3 Aug 2021 19:13:09 +0900
From: Ohhoon Kwon <ohoono.kwon@...sung.com>
To: robh+dt@...nel.org, frowand.list@...il.com
Cc: ohoono.kwon@...sung.com, ohkwon1043@...il.com, nathan@...nel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] of: fdt: do not update local variable after use
Fix the below warning:
drivers/of/fdt.c:196:4: warning: Value stored to 'pprev' is never read
[clang-analyzer-deadcode.DeadStores]
pprev = &pp->next;
^ ~~~~~~~~~
Signed-off-by: Ohhoon Kwon <ohoono.kwon@...sung.com>
---
drivers/of/fdt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index bd35ba56aa96..5dc0b0310d7c 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -193,7 +193,6 @@ static void populate_properties(const void *blob,
pp->length = len;
pp->value = pp + 1;
*pprev = pp;
- pprev = &pp->next;
memcpy(pp->value, ps, len - 1);
((char *)pp->value)[len - 1] = 0;
pr_debug("fixed up name for %s -> %s\n",
--
2.32.0
Powered by blists - more mailing lists