From 7540cdfec4f9306ef7b612f40ef437b4b5136cd5 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 12 Nov 2009 19:22:07 +0000 Subject: voicebus: Remove redundant MAX_CHANNELS_FROM_SPAN git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7568 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wcte12xp/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi/wcte12xp') diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 72fcb9a..8d66f13 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -349,7 +349,7 @@ static int config_vpmadt032(struct vpmadt032 *vpm, struct t1 *wc) return -1; } - for (channel = 0; channel < MAX_CHANNELS_PER_SPAN; ++channel) { + for (channel = 0; channel < ARRAY_SIZE(vpm->curecstate); ++channel) { vpm->curecstate[channel].tap_length = 0; vpm->curecstate[channel].nlp_type = vpm->options.vpmnlptype; vpm->curecstate[channel].nlp_threshold = vpm->options.vpmnlpthresh; -- cgit v1.2.3