mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 05:38:11 +00:00
Remove unnecessary (but unexecutable) unlocks, cleanup code (bug #6220)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
pbx.c
5
pbx.c
@@ -5058,7 +5058,7 @@ void __ast_context_destroy(struct ast_context *con, const char *registrar)
|
|||||||
is searching through it. */
|
is searching through it. */
|
||||||
if (ast_mutex_lock(&tmp->lock)) {
|
if (ast_mutex_lock(&tmp->lock)) {
|
||||||
ast_log(LOG_WARNING, "Unable to lock context lock\n");
|
ast_log(LOG_WARNING, "Unable to lock context lock\n");
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
if (tmpl)
|
if (tmpl)
|
||||||
tmpl->next = tmp->next;
|
tmpl->next = tmp->next;
|
||||||
@@ -5105,8 +5105,7 @@ void __ast_context_destroy(struct ast_context *con, const char *registrar)
|
|||||||
tmpil = NULL;
|
tmpil = NULL;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ast_mutex_unlock(&conlock);
|
break;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
tmpl = tmp;
|
tmpl = tmp;
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
|
|||||||
Reference in New Issue
Block a user