From: Pierre-Louis Bossart Date: Thu, 2 Jul 2020 16:44:31 +0000 (-0500) Subject: ASoC: amd: raven: acp3x-i2s: fix 'set but not used' warning X-Git-Tag: v5.9-rc1~120^2~9^2^2~102^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fadecf947a72f54843afa12c6732c52914d5024d;p=thirdparty%2Fkernel%2Flinux.git ASoC: amd: raven: acp3x-i2s: fix 'set but not used' warning Fix W=1 warning. the card variable is useless here Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20200702164433.162815-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/amd/raven/acp3x-i2s.c b/sound/soc/amd/raven/acp3x-i2s.c index 14607563abd28..a0e14cc91d952 100644 --- a/sound/soc/amd/raven/acp3x-i2s.c +++ b/sound/soc/amd/raven/acp3x-i2s.c @@ -150,13 +150,11 @@ static int acp3x_i2s_trigger(struct snd_pcm_substream *substream, { struct i2s_stream_instance *rtd; struct snd_soc_pcm_runtime *prtd; - struct snd_soc_card *card; u32 ret, val, period_bytes, reg_val, ier_val, water_val; u32 buf_size, buf_reg; prtd = substream->private_data; rtd = substream->runtime->private_data; - card = prtd->card; period_bytes = frames_to_bytes(substream->runtime, substream->runtime->period_size); buf_size = frames_to_bytes(substream->runtime,