diff options
-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); } |