don't take locks when reading usecounts, they are not necessary (bug #4585)
[asterisk/asterisk.git] / formats / format_g723.c
index d0e1b23..91187c3 100755 (executable)
@@ -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()