OSDN Git Service

ALSA: rawmidi: Simplify error paths
authorTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2018 20:45:50 +0000 (22:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2018 20:48:38 +0000 (22:48 +0200)
commit7fdc9b08071b6a3fc85bf90b79e13f6e973a7e5e
treeaec2c291cfe26eaea3c06c6766bf2369170f1452
parent5bed9139727f3bad06c9444bd092336a59397e9d
ALSA: rawmidi: Simplify error paths

Apply the standard idiom: rewrite the multiple unlocks in error paths
in the goto-error-and-single-unlock way.

Just a code refactoring, and no functional changes.

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