diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-02-15 21:46:04 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-16 08:07:57 -0600 |
commit | 67817b3b7a885b86b02b222675e0e29b1a2f25bf (patch) | |
tree | cd43e245bf234dede422ec9a400f5d3e0b34f93d /drivers/core | |
parent | f93a07dd4f2e9096208a3230b0eca669d9760397 (diff) | |
download | u-boot-67817b3b7a885b86b02b222675e0e29b1a2f25bf.tar.gz |
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.c | 2 |
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; |