]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: remove redundant re-assignments to pointer array
authorColin Ian King <colin.i.king@gmail.com>
Tue, 14 Jun 2022 18:38:09 +0000 (19:38 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jun 2022 08:31:18 +0000 (09:31 +0100)
commit6f901ca4443f9463eb2e4a7a0f0ee4047bf641a2
tree21567f3474d74857a4af5bfa2154315d529cd57e
parent24b71968fa6f7f3468e6ce5d541c3f1a05c4f1ed
ASoC: Intel: Skylake: remove redundant re-assignments to pointer array

There are two occurrences where the pointer array is being assigned a value
that is never read, the pointer gets updated in the next iteration of a
loop. These assignments are redundant and can be removed.

Cleans up clang scan-build warnings:
sound/soc/intel/skylake/skl-topology.c:2953:3: warning: Value stored to
'array' is never read [deadcode.DeadStores]
sound/soc/intel/skylake/skl-topology.c:3602:3: warning: Value stored to
'array' is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220614183809.163531-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c