ASoC: amd: renoir: Remove redundant assignment to pdm_ctrl and pdm_enable and pdm_dma...
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 6 May 2021 10:56:30 +0000 (18:56 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 12:05:32 +0000 (13:05 +0100)
commit2fa74b31bb8170f34ec4dfa8455ff07d9ee9a7e6
tree9326b2a8218c46cb29dcb6e43c2ab326ef3236cd
parent604e5178444ea1d8053cf073e2c68fbc73a4e142
ASoC: amd: renoir: Remove redundant assignment to pdm_ctrl and pdm_enable and pdm_dma_enable

Variable pdm_ctrl and pdm_enable and pdm_dma_enable are set to '0x00',
but they are overwritten later on, so these are redundant assignments
that can be removed.

Clean up the following clang-analyzer warning:

sound/soc/amd/renoir/acp3x-pdm-dma.c:148:2: warning: Value stored to
'pdm_dma_enable' is never read [clang-analyzer-deadcode.DeadStores].

sound/soc/amd/renoir/acp3x-pdm-dma.c:147:2: warning: Value stored to
'pdm_enable' is never read [clang-analyzer-deadcode.DeadStores].

sound/soc/amd/renoir/acp3x-pdm-dma.c:80:2: warning: Value stored to
'pdm_ctrl' is never read [clang-analyzer-deadcode.DeadStores].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1620298590-29749-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/renoir/acp3x-pdm-dma.c