]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt286: Remove redundant assignment to d_len_code
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 6 May 2021 10:58:55 +0000 (18:58 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 16:06:05 +0000 (17:06 +0100)
commit0cb22cb8162b34af9b05ed4696979dec742a93f3
tree135840aa952cdcf1c50394e690eaa4c939b2788c
parent562eef1645343d2eb8fff50a23c5d7e2b1f58359
ASoC: rt286: Remove redundant assignment to d_len_code

Variable d_len_code is set to zero, but this value is never read as
it is overwritten or not used later on, hence it is a redundant
assignment and can be removed.

Clean up the following clang-analyzer warning:

sound/soc/codecs/rt286.c:728:2: warning: Value stored to 'd_len_code' 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/1620298735-31708-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt286.c