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