sound: snd_ctl_remove_unlocked_id: simplify error paths
authorClemens Ladisch <clemens@ladisch.de>
Mon, 17 Aug 2009 10:26:34 +0000 (12:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Aug 2009 10:48:06 +0000 (12:48 +0200)
commit317b80817fcaeac7ae7e062fcccef0d2aba38a78
tree37edf39c0171d13be1facc3b14916909ccc43a99
parent2a031aedf7f574a01eb725507cb303d4d7b8b23a
sound: snd_ctl_remove_unlocked_id: simplify error paths

Use a common exit path to release the mutex and to return a possible
error.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c