]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: pcm: Avoid confusing loop in snd_pcm_unlink()
authorTakashi Iwai <tiwai@suse.de>
Sun, 13 Jan 2019 09:19:32 +0000 (10:19 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Jan 2019 15:40:19 +0000 (16:40 +0100)
commit7df5a5f66b8fc2cd51649b3f1b0b88dc59c49d2d
treeb3da6be38e7fa4f7851a8709e8ce4236348ff356
parenta41c4cb913b53bf74f1ec66a4b96057626c87009
ALSA: pcm: Avoid confusing loop in snd_pcm_unlink()

The snd_pcm_group_for_each_entry() loop found in snd_pcm_unlink() is
only for taking the first list entry.  Use list_first_entry() to make
clearer.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c