summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi-base.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-09-07 21:40:29 +0000
committerShaun Ruffell <sruffell@digium.com>2009-09-07 21:40:29 +0000
commit3f7b5175a417301b4e4d63b291c441da9f6c0d0d (patch)
treee83c971f3a9268649213e5e0e858ec818ac9fd11 /drivers/dahdi/dahdi-base.c
parent5ea2ec6c448dd2c2dbb9eaee476840a4d8dd90df (diff)
dahdi-base: Fix flag check in dahdi_rbs_sethook.
As long as any of the flags were set, this check would have always passed. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7097 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r--drivers/dahdi/dahdi-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index d68920a..c1c28c8 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -2345,7 +2345,7 @@ static void dahdi_rbs_sethook(struct dahdi_chan *chan, int txsig, int txstate,
if (!chan->span)
return;
- if (!chan->span->flags & DAHDI_FLAG_RBS) {
+ if (!(chan->span->flags & DAHDI_FLAG_RBS)) {
module_printk(KERN_NOTICE, "dahdi_rbs: Tried to set RBS hook state on non-RBS channel %s\n", chan->name);
return;
}