aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-06-21 10:37:54 -0400
committerJaroslav Kysela <perex@suse.cz>2006-06-22 15:34:42 -0400
commit45df379798b5c3b2ea937735ef04c58ce0f532a7 (patch)
tree3deab42967800920543f7d6d3dfdae2cdda595cd /sound/core
parent555fdc2e9fb2071fdd10ff1d86b8d63265d80241 (diff)
[ALSA] Remove nested mutexes in seq_ports.c
Removed nested mutexes in the removal routine of port connections. The port is guaranteed to be offline before calling it, so no mutex is needed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/seq/seq_ports.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c
index 5f46ee9e2174..334579a9f268 100644
--- a/sound/core/seq/seq_ports.c
+++ b/sound/core/seq/seq_ports.c
@@ -221,7 +221,6 @@ static void clear_subscriber_list(struct snd_seq_client *client,
221{ 221{
222 struct list_head *p, *n; 222 struct list_head *p, *n;
223 223
224 down_write(&grp->list_mutex);
225 list_for_each_safe(p, n, &grp->list_head) { 224 list_for_each_safe(p, n, &grp->list_head) {
226 struct snd_seq_subscribers *subs; 225 struct snd_seq_subscribers *subs;
227 struct snd_seq_client *c; 226 struct snd_seq_client *c;
@@ -259,7 +258,6 @@ static void clear_subscriber_list(struct snd_seq_client *client,
259 snd_seq_client_unlock(c); 258 snd_seq_client_unlock(c);
260 } 259 }
261 } 260 }
262 up_write(&grp->list_mutex);
263} 261}
264 262
265/* delete port data */ 263/* delete port data */