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

ALSA: cs5535audio: remove redundant pointer 'dma'

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

Cleans up two clang warnings:
warning: variable 'dma' 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 96963ded
...@@ -192,8 +192,6 @@ static void process_bm0_irq(struct cs5535audio *cs5535au) ...@@ -192,8 +192,6 @@ static void process_bm0_irq(struct cs5535audio *cs5535au)
bm_stat = cs_readb(cs5535au, ACC_BM0_STATUS); bm_stat = cs_readb(cs5535au, ACC_BM0_STATUS);
spin_unlock(&cs5535au->reg_lock); spin_unlock(&cs5535au->reg_lock);
if (bm_stat & EOP) { if (bm_stat & EOP) {
struct cs5535audio_dma *dma;
dma = cs5535au->playback_substream->runtime->private_data;
snd_pcm_period_elapsed(cs5535au->playback_substream); snd_pcm_period_elapsed(cs5535au->playback_substream);
} else { } else {
dev_err(cs5535au->card->dev, dev_err(cs5535au->card->dev,
...@@ -208,11 +206,8 @@ static void process_bm1_irq(struct cs5535audio *cs5535au) ...@@ -208,11 +206,8 @@ static void process_bm1_irq(struct cs5535audio *cs5535au)
spin_lock(&cs5535au->reg_lock); spin_lock(&cs5535au->reg_lock);
bm_stat = cs_readb(cs5535au, ACC_BM1_STATUS); bm_stat = cs_readb(cs5535au, ACC_BM1_STATUS);
spin_unlock(&cs5535au->reg_lock); spin_unlock(&cs5535au->reg_lock);
if (bm_stat & EOP) { if (bm_stat & EOP)
struct cs5535audio_dma *dma;
dma = cs5535au->capture_substream->runtime->private_data;
snd_pcm_period_elapsed(cs5535au->capture_substream); snd_pcm_period_elapsed(cs5535au->capture_substream);
}
} }
static irqreturn_t snd_cs5535audio_interrupt(int irq, void *dev_id) static irqreturn_t snd_cs5535audio_interrupt(int irq, void *dev_id)
......
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