summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-02-15 21:46:04 +0100
committerSimon Glass <sjg@chromium.org>2020-04-16 08:07:57 -0600
commit67817b3b7a885b86b02b222675e0e29b1a2f25bf (patch)
treecd43e245bf234dede422ec9a400f5d3e0b34f93d /drivers/core
parentf93a07dd4f2e9096208a3230b0eca669d9760397 (diff)
dm: core: remove redundant assignment
Variable count is initialized at the start of every round of the while loop and it is not used after the while loop. So there is no need to initialize it beforehand. Identified by cppcheck. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/of_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c
index acd745c121..29e705e0b6 100644
--- a/drivers/core/of_access.c
+++ b/drivers/core/of_access.c
@@ -577,7 +577,7 @@ static int __of_parse_phandle_with_args(const struct device_node *np,
{
const __be32 *list, *list_end;
int rc = 0, cur_index = 0;
- uint32_t count = 0;
+ uint32_t count;
struct device_node *node = NULL;
phandle phandle;
int size;