]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ps3: Remove set but not used variables 'start_vaddr' and 'pcm_index'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 17 Apr 2019 14:57:22 +0000 (22:57 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 Apr 2019 19:17:54 +0000 (21:17 +0200)
commit54273cdab97d0406442820e9bd9dfae8fe131029
treecca413add9e1102fe448569bd4e6f9b5ffb5e339
parent5141ca6006909b9559b36f9c4b485609a7f94d51
ALSA: ps3: Remove set but not used variables 'start_vaddr' and 'pcm_index'

Fixes gcc '-Wunused-but-set-variable' warnings:

sound/ppc/snd_ps3.c: In function 'snd_ps3_program_dma':
sound/ppc/snd_ps3.c:236:8: warning: variable 'start_vaddr' set but not used [-Wunused-but-set-variable]
sound/ppc/snd_ps3.c: In function 'snd_ps3_pcm_open':
sound/ppc/snd_ps3.c:529:6: warning: variable 'pcm_index' set but not used [-Wunused-but-set-variable]

They are never used and can be removed.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/ppc/snd_ps3.c