summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-06-17 03:08:44 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-06-17 03:08:44 +0000
commit8bd17bbcc36ec3817247c7943f89eeb77f372bf7 (patch)
tree74974a2c35f751f432e9daa8836e81ad106606fe
parent644fbb9766ba8d9e76e710e639bc137e9e2323ac (diff)
Don't double lock the big zap lock
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@412 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xzaptel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zaptel.c b/zaptel.c
index fd15352..445a78a 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -2468,7 +2468,7 @@ static void __do_dtmf(struct zt_chan *chan)
__qevent(chan, ZT_EVENT_DIALCOMPLETE);
}
-static int __zt_release(struct inode *inode, struct file *file)
+static int zt_release(struct inode *inode, struct file *file)
{
int unit = UNIT(file);
int res;
@@ -2500,6 +2500,7 @@ static int __zt_release(struct inode *inode, struct file *file)
return zt_specchan_release(inode, file, unit);
}
+#if 0
static int zt_release(struct inode *inode, struct file *file)
{
/* Lock the big zap lock when handling a release */
@@ -2510,6 +2511,7 @@ static int zt_release(struct inode *inode, struct file *file)
spin_unlock_irqrestore(&bigzaplock, flags);
return res;
}
+#endif
void zt_alarm_notify(struct zt_span *span)
{