From 492315c25512915871fd83c1f6ee4afe204dc1a7 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 20 Dec 2010 19:49:05 +0000 Subject: [PATCH] wcb4xxp: Remove unused syncpos member. Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9545 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wcb4xxp/base.c | 5 +---- drivers/dahdi/wcb4xxp/wcb4xxp.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/dahdi/wcb4xxp/base.c b/drivers/dahdi/wcb4xxp/base.c index 793a6e6..3e7f7da 100644 --- a/drivers/dahdi/wcb4xxp/base.c +++ b/drivers/dahdi/wcb4xxp/base.c @@ -2337,11 +2337,8 @@ static int b4xxp_spanconfig(struct dahdi_span *span, struct dahdi_lineconfig *lc } } - /* if a sync src, put it in proper place */ - b4->spans[span->offset].syncpos = lc->sync; - if (lc->sync) { + if (lc->sync) b4->spans[lc->sync - 1].sync = span->spanno; - } b4xxp_reset_span(bspan); diff --git a/drivers/dahdi/wcb4xxp/wcb4xxp.h b/drivers/dahdi/wcb4xxp/wcb4xxp.h index 6e7f5fb..56dc93b 100644 --- a/drivers/dahdi/wcb4xxp/wcb4xxp.h +++ b/drivers/dahdi/wcb4xxp/wcb4xxp.h @@ -390,7 +390,6 @@ struct b4xxp_span { unsigned char readchunk[WCB4XXP_CHANNELS_PER_SPAN * DAHDI_CHUNKSIZE]; int sync; /* sync priority */ - int syncpos; /* sync priority */ int oldstate; /* old state machine state */ int newalarm; /* alarm to send to zaptel once alarm timer expires */