Skip to content
Commit a41c4cb9 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: pcm: Make PCM linked list consistent while re-grouping



Make a common helper to re-assign the PCM link using list_move() instead
of open code with manual list_del() and list_add_tail().  This assures
the consistency and we can get rid of snd_pcm_group.count field -- its
purpose is only to check whether the list is singular, and we can know
it by list_is_singular() call now.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 73365cb1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment