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

ALSA: es1688: remove redundant pointer chip

Pointer chip is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'chip' 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 eeef847d
...@@ -260,7 +260,6 @@ static int snd_es968_pnp_detect(struct pnp_card_link *pcard, ...@@ -260,7 +260,6 @@ static int snd_es968_pnp_detect(struct pnp_card_link *pcard,
struct snd_card *card; struct snd_card *card;
static unsigned int dev; static unsigned int dev;
int error; int error;
struct snd_es1688 *chip;
if (snd_es968_pnp_is_probed) if (snd_es968_pnp_is_probed)
return -EBUSY; return -EBUSY;
...@@ -276,7 +275,6 @@ static int snd_es968_pnp_detect(struct pnp_card_link *pcard, ...@@ -276,7 +275,6 @@ static int snd_es968_pnp_detect(struct pnp_card_link *pcard,
sizeof(struct snd_es1688), &card); sizeof(struct snd_es1688), &card);
if (error < 0) if (error < 0)
return error; return error;
chip = card->private_data;
error = snd_card_es968_pnp(card, dev, pcard, pid); error = snd_card_es968_pnp(card, dev, pcard, pid);
if (error < 0) { if (error < 0) {
......
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