diff mbox

[3/4] topology: Remove unused variables

Message ID c5ce2ce885b6fa68391a9e66c6b675beb2ce5a43.1447825540.git.mengdong.lin@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

mengdong.lin@linux.intel.com Nov. 18, 2015, 7:23 a.m. UTC
From: Mengdong Lin <mengdong.lin@linux.intel.com>

Fix gcc warning when -Wunused-variable is set.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>

Comments

Takashi Iwai Nov. 18, 2015, 1:58 p.m. UTC | #1
On Wed, 18 Nov 2015 08:23:19 +0100,
mengdong.lin@linux.intel.com wrote:
> 
> From: Mengdong Lin <mengdong.lin@linux.intel.com>
> 
> Fix gcc warning when -Wunused-variable is set.
> 
> Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>

Thanks, applied.


Takashi

> 
> diff --git a/src/topology/pcm.c b/src/topology/pcm.c
> index 4b7c058..d90a9ea 100644
> --- a/src/topology/pcm.c
> +++ b/src/topology/pcm.c
> @@ -58,7 +58,6 @@ static int tplg_build_pcm_caps(snd_tplg_t *tplg, struct tplg_elem *elem)
>  	struct tplg_elem *ref_elem = NULL;
>  	struct snd_soc_tplg_pcm *pcm;
>  	struct snd_soc_tplg_stream_caps *caps;
> -	struct snd_soc_tplg_stream *stream;
>  	unsigned int i;
>  
>  	pcm = elem->pcm;
> @@ -273,7 +272,7 @@ int tplg_parse_stream_caps(snd_tplg_t *tplg, snd_config_t *cfg,
>  	struct tplg_elem *elem = private;
>  	struct snd_soc_tplg_pcm *pcm;
>  	const char *id, *value;
> -	int err, stream;
> +	int stream;
>  
>  	pcm = elem->pcm;
>  
> @@ -384,7 +383,6 @@ int tplg_parse_be(snd_tplg_t *tplg,
>  	snd_config_iterator_t i, next;
>  	snd_config_t *n;
>  	const char *id, *val = NULL;
> -	int err;
>  
>  	elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_BE);
>  	if (!elem)
> @@ -438,7 +436,6 @@ int tplg_parse_cc(snd_tplg_t *tplg,
>  	snd_config_iterator_t i, next;
>  	snd_config_t *n;
>  	const char *id, *val = NULL;
> -	int err;
>  
>  	elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_CC);
>  	if (!elem)
> -- 
> 2.5.0
>
diff mbox

Patch

diff --git a/src/topology/pcm.c b/src/topology/pcm.c
index 4b7c058..d90a9ea 100644
--- a/src/topology/pcm.c
+++ b/src/topology/pcm.c
@@ -58,7 +58,6 @@  static int tplg_build_pcm_caps(snd_tplg_t *tplg, struct tplg_elem *elem)
 	struct tplg_elem *ref_elem = NULL;
 	struct snd_soc_tplg_pcm *pcm;
 	struct snd_soc_tplg_stream_caps *caps;
-	struct snd_soc_tplg_stream *stream;
 	unsigned int i;
 
 	pcm = elem->pcm;
@@ -273,7 +272,7 @@  int tplg_parse_stream_caps(snd_tplg_t *tplg, snd_config_t *cfg,
 	struct tplg_elem *elem = private;
 	struct snd_soc_tplg_pcm *pcm;
 	const char *id, *value;
-	int err, stream;
+	int stream;
 
 	pcm = elem->pcm;
 
@@ -384,7 +383,6 @@  int tplg_parse_be(snd_tplg_t *tplg,
 	snd_config_iterator_t i, next;
 	snd_config_t *n;
 	const char *id, *val = NULL;
-	int err;
 
 	elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_BE);
 	if (!elem)
@@ -438,7 +436,6 @@  int tplg_parse_cc(snd_tplg_t *tplg,
 	snd_config_iterator_t i, next;
 	snd_config_t *n;
 	const char *id, *val = NULL;
-	int err;
 
 	elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_CC);
 	if (!elem)