Commit 3b0cbc78 authored by Colin Ian King's avatar Colin Ian King Committed by Takashi Iwai

ALSA: ens137x: remove redundant array pcm_devs

The array pcm_devs is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'pcm_devs' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent de42b4b9
...@@ -2392,7 +2392,7 @@ static int snd_audiopci_probe(struct pci_dev *pci, ...@@ -2392,7 +2392,7 @@ static int snd_audiopci_probe(struct pci_dev *pci,
static int dev; static int dev;
struct snd_card *card; struct snd_card *card;
struct ensoniq *ensoniq; struct ensoniq *ensoniq;
int err, pcm_devs[2]; int err;
if (dev >= SNDRV_CARDS) if (dev >= SNDRV_CARDS)
return -ENODEV; return -ENODEV;
...@@ -2412,7 +2412,6 @@ static int snd_audiopci_probe(struct pci_dev *pci, ...@@ -2412,7 +2412,6 @@ static int snd_audiopci_probe(struct pci_dev *pci,
} }
card->private_data = ensoniq; card->private_data = ensoniq;
pcm_devs[0] = 0; pcm_devs[1] = 1;
#ifdef CHIP1370 #ifdef CHIP1370
if ((err = snd_ensoniq_1370_mixer(ensoniq)) < 0) { if ((err = snd_ensoniq_1370_mixer(ensoniq)) < 0) {
snd_card_free(card); snd_card_free(card);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment