OSDN Git Service

ASoC: q6dsp: q6afe: remove unneeded dead-store initialization
authorYang Li <yang.lee@linux.alibaba.com>
Sun, 25 Apr 2021 10:12:33 +0000 (18:12 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 12:05:35 +0000 (13:05 +0100)
commit5f1b95d08de712327e452d082a50fded435ec884
tree5e8ece7697de6956ca2860998a28ddc8996117ca
parent85c966dc97d1c46a3079ec4c26714c9f8ec66823
ASoC: q6dsp: q6afe: remove unneeded dead-store initialization

Variables 'wait' and 'port_id' are being initialized, however the
values are never read and updated later on, hence the redundant
initializations can be removed.

Cleans up clang warnings:
sound/soc/qcom/qdsp6/q6afe.c:933:21: warning: Value stored to 'wait'
during its initialization is never read
sound/soc/qcom/qdsp6/q6afe.c:1186:6: warning: Value stored to 'port_id'
during its initialization is never read

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1619345553-29781-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6afe.c