diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-01-13 09:40:21 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-01-21 16:39:54 +0100 |
commit | a41c4cb913b53bf74f1ec66a4b96057626c87009 (patch) | |
tree | a063f1c6b8276a20ac40e407e77454ae303d1860 /include/sound/pcm.h | |
parent | 73365cb10b280e539bad14e129e0d8434418bb79 (diff) | |
download | lwn-a41c4cb913b53bf74f1ec66a4b96057626c87009.tar.gz lwn-a41c4cb913b53bf74f1ec66a4b96057626c87009.zip |
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/pcm.h')
-rw-r--r-- | include/sound/pcm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index d6bd3caf6878..e1c747c70883 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -439,7 +439,6 @@ struct snd_pcm_group { /* keep linked substreams */ spinlock_t lock; struct mutex mutex; struct list_head substreams; - int count; }; struct pid; |