ALSA: usb-midi: Use common error handling code in __snd_usbmidi_create()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 23 Aug 2017 10:20:07 +0000 (12:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Aug 2017 10:53:57 +0000 (12:53 +0200)
commit731209cc041779faac963578d901cb1caacbd738
treecadd838d5f47a871828c7ad881ee1fad45af6a91
parent1ae0e4ce554fb57dc4d5e1eb8e6d302e3f18b0b4
ALSA: usb-midi: Use common error handling code in __snd_usbmidi_create()

Add jump targets 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>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/midi.c