diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-02-06 21:18:45 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-02-06 21:18:45 +0000 |
commit | f311334ecd5249607066a24fe2d62cd5fe7e72c7 (patch) | |
tree | ae89cec32edd8b3be20313cc42945966830d31bc /zaptel.c | |
parent | 839b5172e6bb6c2dcb0ba0eb5ae6ae631af746ff (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-x | zaptel.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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); } |