aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_modem.c')
-rwxr-xr-xchannels/chan_modem.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_modem.c b/channels/chan_modem.c
index 25a052f6b..4a93f35d0 100755
--- a/channels/chan_modem.c
+++ b/channels/chan_modem.c
@@ -1085,11 +1085,7 @@ int load_module()
int usecount(void)
{
- int res;
- ast_mutex_lock(&usecnt_lock);
- res = usecnt;
- ast_mutex_unlock(&usecnt_lock);
- return res;
+ return usecnt;
}
char *description()