diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-02-16 14:22:19 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-02-19 17:02:17 +0000 |
commit | e480c0991db00b24b39010bfd56eda5ec2417186 (patch) | |
tree | 7cad2246360c88c5531cd9bbc1ac1ae97be8778e /sound/soc/codecs | |
parent | a3d543b9e6599fbbb9efc1876919627960c5e97a (diff) |
ASoC: tas2781: Remove redundant initialization of pointer 'data'
The pointer 'data' being initialized with a value that is never read, it
is being re-assigned inside a while-loop. The initialization is redundant
and can be removed.
Cleans up clang scan build warning
sound/soc/codecs/tas2781-fmwlib.c:1534:17: warning: Value stored to
'data' during its initialization is never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://msgid.link/r/20240216142219.2109050-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/tas2781-fmwlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas2781-fmwlib.c b/sound/soc/codecs/tas2781-fmwlib.c index 85e14ff61769..45760fe19523 100644 --- a/sound/soc/codecs/tas2781-fmwlib.c +++ b/sound/soc/codecs/tas2781-fmwlib.c @@ -1531,7 +1531,7 @@ static int tasdev_load_blk(struct tasdevice_priv *tas_priv, unsigned int sleep_time; unsigned int len; unsigned int nr_cmds; - unsigned char *data = block->data; + unsigned char *data; unsigned char crc_chksum = 0; unsigned char offset; unsigned char book; |