]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1d43fbeaec26bd98eb8872bda740203039a6629
treebfcaea0888f8475d70b814f253ff632583cf60b6
parent5ce36955e63c934cbc961244a8e46940436068f0
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