summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-10-08 11:54:29 +0200
committerMark Brown <broonie@kernel.org>2021-10-08 18:22:51 +0200
commit74daadc7fde5dc3326ba2158a60c1c028f2e19b9 (patch)
tree5405b2077f086819689407a938422fa9fdca6279
parentASoC: mediatek: mt8195: update audsys clock parent name (diff)
downloadlinux-74daadc7fde5dc3326ba2158a60c1c028f2e19b9.tar.xz
linux-74daadc7fde5dc3326ba2158a60c1c028f2e19b9.zip
ASoC: rockchip: i2s-tdm: Remove call to rockchip_i2s_ch_to_io
The call to rockchip_i2s_ch_to_io is only useful for its return value which is not being used. The function call also has no side effects, the call is effectively useless and can be removed. Addresses-Coverity: ("Useless call") Signed-off-by: Colin Ian King <colin.king@canonical.com> Message-Id: <20211008095430.62680-1-colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/rockchip/rockchip_i2s_tdm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c
index b08b15071993..cc5a2f9d3948 100644
--- a/sound/soc/rockchip/rockchip_i2s_tdm.c
+++ b/sound/soc/rockchip/rockchip_i2s_tdm.c
@@ -848,8 +848,6 @@ static int rockchip_i2s_io_multiplex(struct snd_pcm_substream *substream,
to_ch_num(val), usable_chs);
return -EINVAL;
}
-
- rockchip_i2s_ch_to_io(val, false);
}
val <<= i2s_tdm->soc_data->grf_shift;