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

Commit bc9abce0 authored by Miguel Boton's avatar Miguel Boton Committed by Jaroslav Kysela
Browse files

[ALSA] fix compilation warning in GCC



'snd_shutdown_f_ops' is not a pointer so its address will never be NULL.
GCC will complain because 'fops_get' will do an unnecessary check because
'&snd_shutdown_f_ops' is always true.

Signed-off-by: default avatarMiguel Boton <mboton@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 52a1d4f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -339,8 +339,8 @@ int snd_card_disconnect(struct snd_card *card)
		list_add(&mfile->shutdown_list, &shutdown_files);
		spin_unlock(&shutdown_lock);

		fops_get(&snd_shutdown_f_ops);
		mfile->file->f_op = &snd_shutdown_f_ops;
		fops_get(mfile->file->f_op);
		
		mfile = mfile->next;
	}