summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/hscx_irq.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-11-04 08:31:19 -0800
committerDavid S. Miller <davem@davemloft.net>2009-11-04 08:31:19 -0800
commita947c8f0313c0cf3691b8d8d2b9aaddf372afdcc (patch)
treed7be970345a1446af169047b554888f66f107fca /drivers/isdn/hisax/hscx_irq.c
parentb9db21f8b964e158f95bb581c887159b6cb98ffa (diff)
isdn: hisax: Fix test in waitforxfw
The negation makes it a bool before the comparison and hence it will never be 0x40. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: Karsten Keil <isdn@linux-pingi.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hisax/hscx_irq.c')
-rw-r--r--drivers/isdn/hisax/hscx_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/hisax/hscx_irq.c b/drivers/isdn/hisax/hscx_irq.c
index 7b1ad5e4ecd..2387d76c721 100644
--- a/drivers/isdn/hisax/hscx_irq.c
+++ b/drivers/isdn/hisax/hscx_irq.c
@@ -32,7 +32,7 @@ waitforXFW(struct IsdnCardState *cs, int hscx)
{
int to = 50;
- while ((!(READHSCX(cs, hscx, HSCX_STAR) & 0x44) == 0x40) && to) {
+ while (((READHSCX(cs, hscx, HSCX_STAR) & 0x44) != 0x40) && to) {
udelay(1);
to--;
}