summaryrefslogtreecommitdiffstats
path: root/sound/soc/stm/stm32_adfsdm.c
diff options
context:
space:
mode:
authorColin Ian King2018-08-01 12:47:40 +0200
committerMark Brown2018-08-01 13:16:26 +0200
commit18127744cf446f113ca33f07e5cea893388f781a (patch)
tree39a3301aa573e3526cdb411a5bed650f22fe3251 /sound/soc/stm/stm32_adfsdm.c
parentASoC: nau8540: remove redundant variable osrate (diff)
downloadkernel-qcow2-linux-18127744cf446f113ca33f07e5cea893388f781a.tar.gz
kernel-qcow2-linux-18127744cf446f113ca33f07e5cea893388f781a.tar.xz
kernel-qcow2-linux-18127744cf446f113ca33f07e5cea893388f781a.zip
ASoC: stm32: remove redundant pointers 'priv' and 'rtd'
Pointer 'priv' is assigned and not used, removing this allows the removal of pointer 'rtd'. Cleans up clang warning: warning: variable 'priv' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/stm/stm32_adfsdm.c')
-rw-r--r--sound/soc/stm/stm32_adfsdm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c
index 0e9373064032..706ff005234f 100644
--- a/sound/soc/stm/stm32_adfsdm.c
+++ b/sound/soc/stm/stm32_adfsdm.c
@@ -269,16 +269,10 @@ static int stm32_adfsdm_pcm_new(struct snd_soc_pcm_runtime *rtd)
static void stm32_adfsdm_pcm_free(struct snd_pcm *pcm)
{
struct snd_pcm_substream *substream;
- struct snd_soc_pcm_runtime *rtd;
- struct stm32_adfsdm_priv *priv;
substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
- if (substream) {
- rtd = substream->private_data;
- priv = snd_soc_dai_get_drvdata(rtd->cpu_dai);
-
+ if (substream)
snd_pcm_lib_preallocate_free_for_all(pcm);
- }
}
static struct snd_soc_component_driver stm32_adfsdm_soc_platform = {