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 */