From: Clemens Ladisch Date: Mon, 17 Aug 2009 10:27:22 +0000 (+0200) Subject: sound: snd_ctl_remove_unlocked_id: simplify user control counting X-Git-Tag: v2.6.32-rc1~732^2~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f217ac59b6dd73105abc13da3fe656391fa6d135;p=pandora-kernel.git sound: snd_ctl_remove_unlocked_id: simplify user control counting Move the decrementing of the user controls counter from snd_ctl_elem_remove to snd_ctl_remove_unlocked_id; this saves the separate locking of the controls semaphore, and therefore removes a harmless race. Since the purpose of the function is to operate on user controls (the control being unlocked is just a prerequisite), rename it to snd_ctl_remove_user_ctl. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed