diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-08-01 06:47:35 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-08-01 07:59:29 -0400 |
commit | 45bf41005ac0d7cae0c1caa85d06cb35976823fa (patch) | |
tree | b699579331afe62811f63d1ca815902ca3cd123a | |
parent | 96963dedd000605a0e84e2ac6e41263a50f05953 (diff) |
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index de409cda50aa..4590086d9cd8 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -192,8 +192,6 @@ static void process_bm0_irq(struct cs5535audio *cs5535au) | |||
192 | bm_stat = cs_readb(cs5535au, ACC_BM0_STATUS); | 192 | bm_stat = cs_readb(cs5535au, ACC_BM0_STATUS); |
193 | spin_unlock(&cs5535au->reg_lock); | 193 | spin_unlock(&cs5535au->reg_lock); |
194 | if (bm_stat & EOP) { | 194 | if (bm_stat & EOP) { |
195 | struct cs5535audio_dma *dma; | ||
196 | dma = cs5535au->playback_substream->runtime->private_data; | ||
197 | snd_pcm_period_elapsed(cs5535au->playback_substream); | 195 | snd_pcm_period_elapsed(cs5535au->playback_substream); |
198 | } else { | 196 | } else { |
199 | dev_err(cs5535au->card->dev, | 197 | dev_err(cs5535au->card->dev, |
@@ -208,11 +206,8 @@ static void process_bm1_irq(struct cs5535audio *cs5535au) | |||
208 | spin_lock(&cs5535au->reg_lock); | 206 | spin_lock(&cs5535au->reg_lock); |
209 | bm_stat = cs_readb(cs5535au, ACC_BM1_STATUS); | 207 | bm_stat = cs_readb(cs5535au, ACC_BM1_STATUS); |
210 | spin_unlock(&cs5535au->reg_lock); | 208 | spin_unlock(&cs5535au->reg_lock); |
211 | if (bm_stat & EOP) { | 209 | if (bm_stat & EOP) |
212 | struct cs5535audio_dma *dma; | ||
213 | dma = cs5535au->capture_substream->runtime->private_data; | ||
214 | snd_pcm_period_elapsed(cs5535au->capture_substream); | 210 | snd_pcm_period_elapsed(cs5535au->capture_substream); |
215 | } | ||
216 | } | 211 | } |
217 | 212 | ||
218 | static irqreturn_t snd_cs5535audio_interrupt(int irq, void *dev_id) | 213 | static irqreturn_t snd_cs5535audio_interrupt(int irq, void *dev_id) |