aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_modem_i4l.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_modem_i4l.c')
-rwxr-xr-xchannels/chan_modem_i4l.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_modem_i4l.c b/channels/chan_modem_i4l.c
index 7d3761c2c..ddcf3810b 100755
--- a/channels/chan_modem_i4l.c
+++ b/channels/chan_modem_i4l.c
@@ -706,11 +706,7 @@ static struct ast_modem_driver i4l_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)