This should already be called while locked.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-11-10 03:34:13 +00:00
parent 1991814a38
commit 0efd51e1d2

View File

@@ -2090,7 +2090,6 @@ static int ast_remove_hint(struct ast_exten *e)
if (!e)
return -1;
AST_RWLIST_WRLOCK(&hints);
AST_RWLIST_TRAVERSE_SAFE_BEGIN(&hints, hint, list) {
if (hint->exten == e) {
cbprev = NULL;
@@ -2110,7 +2109,6 @@ static int ast_remove_hint(struct ast_exten *e)
}
}
AST_RWLIST_TRAVERSE_SAFE_END
AST_RWLIST_UNLOCK(&hints);
return res;
}