From 6ed54cc7e3f35e33adff1f8bbba801e01f46a67b Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 7 Nov 2011 22:40:11 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10330 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index b1b8332..67150c8 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -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) {