don't take locks when reading usecounts, they are not necessary (bug #4585)
[asterisk/asterisk.git] / formats / format_ilbc.c
index a690f26..1d4388a 100755 (executable)
@@ -231,14 +231,7 @@ int unload_module()
 
 int usecount()
 {
-       int res;
-       if (ast_mutex_lock(&ilbc_lock)) {
-               ast_log(LOG_WARNING, "Unable to lock ilbc list\n");
-               return -1;
-       }
-       res = glistcnt;
-       ast_mutex_unlock(&ilbc_lock);
-       return res;
+       return glistcnt;
 }
 
 char *description()