Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d904864 authored by Sachin Kamat's avatar Sachin Kamat Committed by Takashi Iwai
Browse files

ALSA: trident: Remove unused variable in trident_main.c



'private_data' is not used in the function. Remove it.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 84526820
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -3880,14 +3880,12 @@ void snd_trident_free_voice(struct snd_trident * trident, struct snd_trident_voi
{
{
	unsigned long flags;
	unsigned long flags;
	void (*private_free)(struct snd_trident_voice *);
	void (*private_free)(struct snd_trident_voice *);
	void *private_data;


	if (voice == NULL || !voice->use)
	if (voice == NULL || !voice->use)
		return;
		return;
	snd_trident_clear_voices(trident, voice->number, voice->number);
	snd_trident_clear_voices(trident, voice->number, voice->number);
	spin_lock_irqsave(&trident->voice_alloc, flags);
	spin_lock_irqsave(&trident->voice_alloc, flags);
	private_free = voice->private_free;
	private_free = voice->private_free;
	private_data = voice->private_data;
	voice->private_free = NULL;
	voice->private_free = NULL;
	voice->private_data = NULL;
	voice->private_data = NULL;
	if (voice->pcm)
	if (voice->pcm)