diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-05-06 18:58:55 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-10 17:06:05 +0100 |
commit | 1d122dd3b168f55e2e29982cff80f1c15f66ef26 (patch) | |
tree | 135840aa952cdcf1c50394e690eaa4c939b2788c /sound/soc/codecs/rt286.c | |
parent | 16f2a3cdaacaa7c077e238df45e4d38d6bc0a6c5 (diff) |
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>
Diffstat (limited to 'sound/soc/codecs/rt286.c')
-rw-r--r-- | sound/soc/codecs/rt286.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c index 802f4851c3df..caa720884e3e 100644 --- a/sound/soc/codecs/rt286.c +++ b/sound/soc/codecs/rt286.c @@ -725,7 +725,6 @@ static int rt286_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } - d_len_code = 0; switch (params_width(params)) { /* bit 6:4 Bits per Sample */ case 16: |