diff mbox

ASoC: soc-compress: Remove unused variable

Message ID 1345531822-2297-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Aug. 21, 2012, 6:50 a.m. UTC
codec_dai is not used in the function.

sound/soc/soc-compress.c: In function ‘soc_compr_set_params’:
sound/soc/soc-compress.c:156:22: warning:
unused variable ‘codec_dai’ [-Wunused-variable]

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 sound/soc/soc-compress.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Comments

Mark Brown Aug. 21, 2012, 2:14 p.m. UTC | #1
On Tue, Aug 21, 2012 at 12:20:22PM +0530, Sachin Kamat wrote:
> codec_dai is not used in the function.
> 
> sound/soc/soc-compress.c: In function ‘soc_compr_set_params’:
> sound/soc/soc-compress.c:156:22: warning:
> unused variable ‘codec_dai’ [-Wunused-variable]

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
index 88d85ba..b837674 100644
--- a/sound/soc/soc-compress.c
+++ b/sound/soc/soc-compress.c
@@ -153,7 +153,6 @@  static int soc_compr_set_params(struct snd_compr_stream *cstream,
 {
 	struct snd_soc_pcm_runtime *rtd = cstream->private_data;
 	struct snd_soc_platform *platform = rtd->platform;
-	struct snd_soc_dai *codec_dai = rtd->codec_dai;
 	int ret = 0;
 
 	/* first we call set_params for the platform driver