summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-02-06 21:18:45 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-02-06 21:18:45 +0000
commitf311334ecd5249607066a24fe2d62cd5fe7e72c7 (patch)
treeae89cec32edd8b3be20313cc42945966830d31bc /zaptel.c
parent839b5172e6bb6c2dcb0ba0eb5ae6ae631af746ff (diff)
Cleanup delayed removal code
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@309 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/zaptel.c b/zaptel.c
index a2206c7..f1497c5 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -1463,16 +1463,6 @@ static struct ppp_channel_ops ztppp_ops =
#endif
-static void __zt_recalc_maxchans(void)
-{
- int x;
- maxchans = 0;
- for (x=1;x<ZT_MAX_CHANNELS;x++)
- if (chans[x]) {
- maxchans = x + 1;
- }
-}
-
static void zt_chan_unreg(struct zt_chan *chan)
{
int x;
@@ -5882,8 +5872,8 @@ int zt_receive(struct zt_span *span)
__zt_free_pseudo(chans[x]);
}
}
+ zapneedfree = 0;
}
- __zt_recalc_maxchans();
spin_unlock_irqrestore(&zapfreelock, flags);
}