ALSA: pcm: Use common error handling code in _snd_pcm_new()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 23 Aug 2017 06:40:37 +0000 (08:40 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Aug 2017 08:35:50 +0000 (10:35 +0200)
commit97d15a141f84a02d40d2ee442df5c6bd2f62b3d8
treeb9b1a11b2f720a7830acfb7182d2ccd750286f01
parente17a85eccfa0b7d0089af218b0c468d4b8a3c3c2
ALSA: pcm: Use common error handling code in _snd_pcm_new()

Add a jump target so that a bit of exception handling can be better reused
at the end of this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c