dahdi: Fix typo in previous commit which forced some spans to always fail assignment.
I misssed a small typo in r10328 "Extra debugging aids and messages" that would force any span that supports a hardware preechocan to always fail assignment with -EFAULT. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10330 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
09e46f2213
commit
6ed54cc7e3
@ -6884,10 +6884,11 @@ static int _dahdi_assign_span(struct dahdi_span *span, unsigned int spanno,
|
||||
if (span->ops->enable_hw_preechocan ||
|
||||
span->ops->disable_hw_preechocan) {
|
||||
if ((NULL == span->ops->enable_hw_preechocan) ||
|
||||
(NULL == span->ops->disable_hw_preechocan))
|
||||
(NULL == span->ops->disable_hw_preechocan)) {
|
||||
dev_notice(span->parent->dev.parent,
|
||||
"span with inconsistent enable/disable hw_preechocan");
|
||||
return -EFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
if (!span->deflaw) {
|
||||
|
Loading…
Reference in New Issue
Block a user