]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: pcm: Unify snd_pcm_group initialization
authorTakashi Iwai <tiwai@suse.de>
Sun, 13 Jan 2019 08:35:17 +0000 (09:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Jan 2019 15:39:35 +0000 (16:39 +0100)
commit73365cb10b280e539bad14e129e0d8434418bb79
tree578b57c2edbaafecc208d65fbb1518d5044a84c9
parentd819fb21eecc70972c4a3681f2542e1ddcc1ca13
ALSA: pcm: Unify snd_pcm_group initialization

There are multiple open codes that initialize the same object.
Create a common helper function instead.

Also, use kzalloc() to be safer at creating a group object, and move
the initialization out of the critical section.

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