aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_g723.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-23 17:30:56 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-23 17:30:56 +0000
commitb2594f9c525868da152772cccc148e0fe90bccd2 (patch)
treeb519cace05d6aea03137f8dfd24837b5ab53dda9 /formats/format_g723.c
parent80155f4f8e3e6f8595cb974948c641705aad2dc7 (diff)
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
Diffstat (limited to 'formats/format_g723.c')
-rwxr-xr-xformats/format_g723.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/formats/format_g723.c b/formats/format_g723.c
index d0e1b2325..91187c3bd 100755
--- a/formats/format_g723.c
+++ b/formats/format_g723.c
@@ -249,14 +249,7 @@ int unload_module()
int usecount()
{
- int res;
- if (ast_mutex_lock(&g723_lock)) {
- ast_log(LOG_WARNING, "Unable to lock g723 list\n");
- return -1;
- }
- res = glistcnt;
- ast_mutex_unlock(&g723_lock);
- return res;
+ return glistcnt;
}
char *description()