[2.4 patch] trident 1/1 fix operator precedence bug

From: Adrian Bunk (bunk@fs.tum.de)
Date: Mon Mar 31 2003 - 16:06:21 EST


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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:37 EST