aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_local.c')
-rwxr-xr-xchannels/chan_local.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index e520edaed..a16e07ed2 100755
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -585,11 +585,7 @@ int unload_module()
int usecount()
{
- int res;
- ast_mutex_lock(&usecnt_lock);
- res = usecnt;
- ast_mutex_unlock(&usecnt_lock);
- return res;
+ return usecnt;
}
char *key()