dm: core: remove redundant assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Feb 2020 20:46:04 +0000 (21:46 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:57 +0000 (08:07 -0600)
commit67817b3b7a885b86b02b222675e0e29b1a2f25bf
treecd43e245bf234dede422ec9a400f5d3e0b34f93d
parentf93a07dd4f2e9096208a3230b0eca669d9760397
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>
drivers/core/of_access.c