commit | 681789d5d92f24fc3bd2c3d47053b674de311fad | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Thu Mar 28 17:11:10 2019 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Nov 06 12:18:28 2019 +0100 |
tree | 447a776244c2897b9023aa834661054f94c610df | |
parent | cdf8ae78f3441151ad3a1722e71b9737095a3811 [diff] |
ALSA: timer: Simplify error path in snd_timer_open() [ Upstream commit 41672c0c24a62699d20aab53b98d843b16483053 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>