summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}