summaryrefslogtreecommitdiff
path: root/sound/soc/sof/compress.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2022-08-22 20:49:37 +0300
committerMark Brown <broonie@kernel.org>2022-08-23 15:04:52 +0300
commitd45f552a1e44e2885c4b7551564241959d8138be (patch)
treec9b9886ce67c82807e72ff649004344db5e6f408 /sound/soc/sof/compress.c
parent62bd431bac942c90d908b1681d04f0c577f6c70f (diff)
downloadlinux-d45f552a1e44e2885c4b7551564241959d8138be.tar.xz
ASoC: SOF: compress: Remove dai_posn variable
dai_posn is set but never used. Initial intention was to use dai_posn to shorthen one code line but it looks fine without it too. Fixes: c1a731c71359 ("ASoC: SOF: compress: Add support for computing timestamps") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20220822174937.254873-1-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/compress.c')
-rw-r--r--sound/soc/sof/compress.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/sof/compress.c b/sound/soc/sof/compress.c
index 174b3d8e67dd..c8ae778a50d1 100644
--- a/sound/soc/sof/compress.c
+++ b/sound/soc/sof/compress.c
@@ -327,7 +327,6 @@ static int sof_compr_pointer(struct snd_soc_component *component,
struct snd_compr_stream *cstream,
struct snd_compr_tstamp *tstamp)
{
- u64 dai_posn;
struct snd_sof_pcm *spcm;
struct snd_soc_pcm_runtime *rtd = cstream->private_data;
struct sof_compr_stream *sstream = cstream->runtime->private_data;
@@ -336,8 +335,6 @@ static int sof_compr_pointer(struct snd_soc_component *component,
if (!spcm)
return -EINVAL;
- dai_posn = spcm->stream[cstream->direction].posn.dai_posn;
-
tstamp->sampling_rate = sstream->sampling_rate;
tstamp->copied_total = sstream->copied_total;
tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn,