summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-16 09:49:38 +0100
committerTakashi Iwai <tiwai@suse.de>2018-07-16 14:29:57 +0200
commit29fba9230de237312337fb7372a6ee2d5f2f893c (patch)
treec70819ce4557dbee7e2a761a7476d2e3c3a2173f /sound/isa
parenta34e8aac49e6d2e3438998edba5f753bd5d5210f (diff)
downloadlinux-29fba9230de237312337fb7372a6ee2d5f2f893c.tar.gz
linux-29fba9230de237312337fb7372a6ee2d5f2f893c.tar.bz2
linux-29fba9230de237312337fb7372a6ee2d5f2f893c.zip
ALSA: gus: remove redundant pointer private_data
Pointer private_data is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'private_data' 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>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/gus/gus_reset.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/isa/gus/gus_reset.c b/sound/isa/gus/gus_reset.c
index 3d1fed0c2620..59b3f683d49b 100644
--- a/sound/isa/gus/gus_reset.c
+++ b/sound/isa/gus/gus_reset.c
@@ -292,7 +292,6 @@ void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice)
{
unsigned long flags;
void (*private_free)(struct snd_gus_voice *voice);
- void *private_data;
if (voice == NULL || !voice->use)
return;
@@ -300,7 +299,6 @@ void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice)
snd_gf1_clear_voices(gus, voice->number, voice->number);
spin_lock_irqsave(&gus->voice_alloc, flags);
private_free = voice->private_free;
- private_data = voice->private_data;
voice->private_free = NULL;
voice->private_data = NULL;
if (voice->pcm)