diff options
author | Ohhoon Kwon <ohoono.kwon@samsung.com> | 2021-08-03 12:13:09 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2021-08-03 22:20:00 +0200 |
commit | 4409273b818cfcbb2f64718d9438629398ac3ae5 (patch) | |
tree | 982668f67338dea2e0edffd03a8e5260c1045466 /drivers/of/fdt.c | |
parent | Documentation: fix incorrect macro referencing in mscc-phy-vsc8531.txt (diff) | |
download | linux-4409273b818cfcbb2f64718d9438629398ac3ae5.tar.xz linux-4409273b818cfcbb2f64718d9438629398ac3ae5.zip |
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@samsung.com>
Link: https://lore.kernel.org/r/20210803101309.904-1-ohoono.kwon@samsung.com
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r-- | drivers/of/fdt.c | 1 |
1 files changed, 0 insertions, 1 deletions
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", |