[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    [2.4 patch] trident 1/1 fix operator precedence bug
From:       Adrian Bunk <bunk () fs ! tum ! de>
Date:       2003-03-31 21:06:21
[Download RAW message or body]

The patch below by John Levon is already in 2.5. Muli Ben-Yehuda wrote:

<--  snip  -->

Fix an operator precedence bug that caused a comparison to always
return false. Patch from John Levon <levon@movementarian.org>. Tested,
works fine. 

<--  snip  -->

Please apply
Adrian

--- linux-2.4.21-pre6-full/drivers/sound/trident.c.old	2003-03-31 22:57:08.000000000 +0200
+++ linux-2.4.21-pre6-full/drivers/sound/trident.c	2003-03-31 22:57:29.000000000 +0200
@@ -3060,7 +3060,7 @@
         ncount = 10;
 	while(1) {
 		wcontrol = inw(TRID_REG(card, ALI_AC97_WRITE));
-		if(!wcontrol & 0x8000)
+		if(!(wcontrol & 0x8000))
 			break;
 		if(ncount <= 0)
 			break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic