wcte43x: Trivial drop of unnecessary local variables.
These were left over from when the VPM callbacks depended on the different VPM installed. On the wcte43x this is unnecessary. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
This commit is contained in:
parent
438b2a36b3
commit
0b499d9566
@ -648,16 +648,11 @@ static int t43x_echocan_create(struct dahdi_chan *chan,
|
|||||||
struct t43x *wc = chan->pvt;
|
struct t43x *wc = chan->pvt;
|
||||||
struct t43x_span *ts = container_of(chan->span, struct t43x_span, span);
|
struct t43x_span *ts = container_of(chan->span, struct t43x_span, span);
|
||||||
int channel = chan->chanpos - 1;
|
int channel = chan->chanpos - 1;
|
||||||
const struct dahdi_echocan_ops *ops;
|
|
||||||
const struct dahdi_echocan_features *features;
|
|
||||||
const bool alaw = (chan->span->deflaw == 2);
|
const bool alaw = (chan->span->deflaw == 2);
|
||||||
|
|
||||||
if (!vpmsupport || !wc->vpm)
|
if (!vpmsupport || !wc->vpm)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
ops = &vpm_ec_ops;
|
|
||||||
features = &vpm_ec_features;
|
|
||||||
|
|
||||||
if (ecp->param_count > 0) {
|
if (ecp->param_count > 0) {
|
||||||
dev_warn(&wc->xb.pdev->dev,
|
dev_warn(&wc->xb.pdev->dev,
|
||||||
"%s echo canceller does not support parameters; failing request\n",
|
"%s echo canceller does not support parameters; failing request\n",
|
||||||
@ -666,8 +661,8 @@ static int t43x_echocan_create(struct dahdi_chan *chan,
|
|||||||
}
|
}
|
||||||
|
|
||||||
*ec = ts->ec[channel];
|
*ec = ts->ec[channel];
|
||||||
(*ec)->ops = ops;
|
(*ec)->ops = &vpm_ec_ops;
|
||||||
(*ec)->features = *features;
|
(*ec)->features = vpm_ec_features;
|
||||||
|
|
||||||
channel += (32*chan->span->offset);
|
channel += (32*chan->span->offset);
|
||||||
vpm450m_set_alaw_companding(wc->vpm, channel, alaw);
|
vpm450m_set_alaw_companding(wc->vpm, channel, alaw);
|
||||||
|
Loading…
Reference in New Issue
Block a user