All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: alsa-devel@alsa-project.org
Cc: liam.r.girdwood@linux.intel.com,
	Vinod Koul <vinod.koul@intel.com>, Jun Nie <jun.nie@linaro.org>,
	broonie@kernel.org
Subject: [PATCH 14/14] ASoC: zx296702-i2s: remove unused ‘format’
Date: Thu,  8 Dec 2016 23:01:37 +0530	[thread overview]
Message-ID: <1481218297-17568-15-git-send-email-vinod.koul@intel.com> (raw)
In-Reply-To: <1481218297-17568-1-git-send-email-vinod.koul@intel.com>

In zx_i2s_hw_params(), 'format' is initialized and assigned bits based on
params_format, but never used. So remove it.

sound/soc/zte/zx296702-i2s.c: In function ‘zx_i2s_hw_params’:
sound/soc/zte/zx296702-i2s.c:228:21: warning: variable ‘format’ set but not used [-Wunused-but-set-variable]
  unsigned long val, format;

Cc: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 sound/soc/zte/zx296702-i2s.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sound/soc/zte/zx296702-i2s.c b/sound/soc/zte/zx296702-i2s.c
index 1cad93dc1fcf..ed7a56d1ef54 100644
--- a/sound/soc/zte/zx296702-i2s.c
+++ b/sound/soc/zte/zx296702-i2s.c
@@ -225,7 +225,7 @@ static int zx_i2s_hw_params(struct snd_pcm_substream *substream,
 	struct zx_i2s_info *i2s = snd_soc_dai_get_drvdata(socdai);
 	struct snd_dmaengine_dai_dma_data *dma_data;
 	unsigned int lane, ch_num, len, ret = 0;
-	unsigned long val, format;
+	unsigned long val;
 	unsigned long chn_cfg;
 
 	dma_data = snd_soc_dai_get_dma_data(socdai, substream);
@@ -238,15 +238,12 @@ static int zx_i2s_hw_params(struct snd_pcm_substream *substream,
 
 	switch (params_format(params)) {
 	case SNDRV_PCM_FORMAT_S16_LE:
-		format = 0;
 		len = 16;
 		break;
 	case SNDRV_PCM_FORMAT_S24_LE:
-		format = 1;
 		len = 24;
 		break;
 	case SNDRV_PCM_FORMAT_S32_LE:
-		format = 2;
 		len = 32;
 		break;
 	default:
-- 
1.9.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2016-12-08 17:32 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 17:31 [PATCH 00/14] ASoC: Compile fixes with W=1 Vinod Koul
2016-12-08 17:31 ` [PATCH 01/14] ASoC: Intel: Skylake: remove unused 'ret' Vinod Koul
2016-12-15 12:21   ` Applied "ASoC: Intel: Skylake: remove unused 'ret'" to the asoc tree Mark Brown
2016-12-08 17:31 ` [PATCH 02/14] ASoC: Intel: sst: remove unused 'msg_high' Vinod Koul
2016-12-15 12:21   ` Applied "ASoC: Intel: sst: remove unused 'msg_high'" to the asoc tree Mark Brown
2016-12-08 17:31 ` [PATCH 03/14] ASoC: Intel: sst: remove unused 'ops' Vinod Koul
2016-12-15 12:21   ` Applied "ASoC: Intel: sst: remove unused 'ops'" to the asoc tree Mark Brown
2016-12-08 17:31 ` [PATCH 04/14] ASoC: topology: remove unused 'err' Vinod Koul
2016-12-15 12:21   ` Applied "ASoC: topology: remove unused 'err'" to the asoc tree Mark Brown
2016-12-08 17:31 ` [PATCH 05/14] ASoC: hdac_hdmi: remove unused 'dai_map' Vinod Koul
2016-12-15 12:21   ` Applied "ASoC: hdac_hdmi: remove unused 'dai_map'" to the asoc tree Mark Brown
2016-12-08 17:31 ` [PATCH 06/14] ASoC: max98090: remove superflous check for 'micbias' Vinod Koul
2016-12-15 12:21   ` Applied "ASoC: max98090: remove superflous check for 'micbias'" to the asoc tree Mark Brown
2016-12-08 17:31 ` [PATCH 07/14] ASoC: AMD: remove unused ‘dma_buffer’ Vinod Koul
2016-12-08 17:31 ` [PATCH 08/14] ASoC: adau17x1: remove unused ‘ret’ Vinod Koul
2016-12-08 17:31 ` [PATCH 09/14] ASoC: max9867: " Vinod Koul
2016-12-08 22:48   ` Fabio Estevam
2016-12-09  6:56     ` Vinod Koul
2016-12-15 11:22       ` Mark Brown
2016-12-08 17:31 ` [PATCH 10/14] ASoC: pcm3168a: remove unused ‘format’ Vinod Koul
2016-12-08 17:31 ` [PATCH 11/14] ASoC: img: " Vinod Koul
2016-12-08 17:31 ` [PATCH 12/14] ASoC: Intel: sst: remove unused ‘ret_val’ Vinod Koul
2016-12-08 17:31 ` [PATCH 13/14] ASoC: samsung: smdk_wm8580: remove unused ‘bfs’ Vinod Koul
2016-12-08 17:31 ` Vinod Koul [this message]
2016-12-09  2:47   ` [PATCH 14/14] ASoC: zx296702-i2s: remove unused ‘format’ Jun Nie
2016-12-15 11:36     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481218297-17568-15-git-send-email-vinod.koul@intel.com \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jun.nie@linaro.org \
    --cc=liam.r.girdwood@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.