ALSA: timer: Simplify error path in snd_timer_open()
authorTakashi Iwai <tiwai@suse.de>
Thu, 28 Mar 2019 16:11:10 +0000 (17:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Apr 2019 06:42:22 +0000 (08:42 +0200)
commit41672c0c24a62699d20aab53b98d843b16483053
treebfcaea0888f8475d70b814f253ff632583cf60b6
parent2eabc5ec8ab4d4748a82050dfcb994119b983750
ALSA: timer: Simplify error path in snd_timer_open()

Just a minor refactoring to use the standard goto for error paths in
snd_timer_open() instead of open code.  The first mutex_lock() is
moved to the beginning of the function to make the code clearer.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c