aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_modem_aopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_modem_aopen.c')
-rwxr-xr-xchannels/chan_modem_aopen.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_modem_aopen.c b/channels/chan_modem_aopen.c
index f18ded9fc..db8dea943 100755
--- a/channels/chan_modem_aopen.c
+++ b/channels/chan_modem_aopen.c
@@ -465,11 +465,7 @@ static struct ast_modem_driver aopen_driver =
int usecount(void)
{
- int res;
- ast_mutex_lock(&usecnt_lock);
- res = usecnt;
- ast_mutex_unlock(&usecnt_lock);
- return res;
+ return usecnt;
}
int load_module(void)