From b2594f9c525868da152772cccc148e0fe90bccd2 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Thu, 23 Jun 2005 17:30:56 +0000 Subject: don't take locks when reading usecounts, they are not necessary (bug #4585) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5983 f38db490-d61c-443f-a65b-d21fe96a405b --- formats/format_g729.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'formats/format_g729.c') diff --git a/formats/format_g729.c b/formats/format_g729.c index 19e6809be..d28098f89 100755 --- a/formats/format_g729.c +++ b/formats/format_g729.c @@ -229,14 +229,7 @@ int unload_module() int usecount() { - int res; - if (ast_mutex_lock(&g729_lock)) { - ast_log(LOG_WARNING, "Unable to lock g729 list\n"); - return -1; - } - res = glistcnt; - ast_mutex_unlock(&g729_lock); - return res; + return glistcnt; } char *description() -- cgit v1.2.3