From 6a0fdb312f560e3f6b946bf7de0eabdbcb9b4cb2 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" 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: https://origsvn.digium.com/svn/asterisk/trunk@5983 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- formats/format_pcm_alaw.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'formats/format_pcm_alaw.c') diff --git a/formats/format_pcm_alaw.c b/formats/format_pcm_alaw.c index b5de9f980..827c1420b 100755 --- a/formats/format_pcm_alaw.c +++ b/formats/format_pcm_alaw.c @@ -299,14 +299,7 @@ int unload_module() int usecount() { - int res; - if (ast_mutex_lock(&pcm_lock)) { - ast_log(LOG_WARNING, "Unable to lock pcm list\n"); - return -1; - } - res = glistcnt; - ast_mutex_unlock(&pcm_lock); - return res; + return glistcnt; } char *description() -- cgit v1.2.3