Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: ali5451: Drop unused variable

The variable runtime is never used, and this might be even a source of
NULL-dereference. Nothing better than killing it.

Spotted by coverity CID 100862.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

-2
-2
sound/pci/ali5451/ali5451.c
··· 855 855 static void snd_ali_update_ptr(struct snd_ali *codec, int channel) 856 856 { 857 857 struct snd_ali_voice *pvoice; 858 - struct snd_pcm_runtime *runtime; 859 858 struct snd_ali_channel_control *pchregs; 860 859 unsigned int old, mask; 861 860 #ifdef ALI_DEBUG ··· 871 872 return; 872 873 873 874 pvoice = &codec->synth.voices[channel]; 874 - runtime = pvoice->substream->runtime; 875 875 876 876 udelay(100); 877 877 spin_lock(&codec->reg_lock);