mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
topology: fix unused-variable warnings introduced to build_link()
A function with unused automatic variables was recently introduced to this
library, then compiler generates below warnings.
pcm.c: In function ‘build_link’:
pcm.c:213:6: warning: unused variable ‘i’ [-Wunused-variable]
int i, num_hw_configs = 0, err = 0;
^
pcm.c:210:43: warning: unused variable ‘cmpnt’ [-Wunused-variable]
struct snd_soc_tplg_link_cmpnt *codec, *cmpnt;
^~~~~
pcm.c:210:35: warning: unused variable ‘codec’ [-Wunused-variable]
struct snd_soc_tplg_link_cmpnt *codec, *cmpnt;
^~~~~
pcm.c:209:20: warning: unused variable ‘ref_elem’ [-Wunused-variable]
struct tplg_elem *ref_elem = NULL;
This commit removes them.
Fixes: 53f7711769d4("topology: Define a function to build a single physical DAI link")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
d008e1ac20
commit
5a2bddfc79
1 changed files with 1 additions and 3 deletions
|
|
@ -206,11 +206,9 @@ static int tplg_build_stream_cfg(snd_tplg_t *tplg,
|
|||
static int build_link(snd_tplg_t *tplg, struct tplg_elem *elem)
|
||||
{
|
||||
struct snd_soc_tplg_link_config *link = elem->link;
|
||||
struct tplg_elem *ref_elem = NULL;
|
||||
struct snd_soc_tplg_link_cmpnt *codec, *cmpnt;
|
||||
struct tplg_ref *ref;
|
||||
struct list_head *base, *pos;
|
||||
int i, num_hw_configs = 0, err = 0;
|
||||
int num_hw_configs = 0, err = 0;
|
||||
|
||||
err = tplg_build_stream_cfg(tplg, link->stream,
|
||||
link->num_streams);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue