[PATCH] trident 1/1 fix operator precedence bug

From: Muli Ben-Yehuda (mulix@mulix.org)
Date: Fri Feb 28 2003 - 18:11:50 EST


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

--- a/sound/oss/trident.c Sat Mar 1 01:14:13 2003
+++ b/sound/oss/trident.c Sat Mar 1 01:14:13 2003
@@ -3059,7 +3059,7 @@
         ncount = 10;
         while(1) {
                 wcontrol = inw(TRID_REG(card, ALI_AC97_WRITE));
- if(!wcontrol & 0x8000)
+ if(!(wcontrol & 0x8000))
                         break;
                 if(ncount <= 0)
                         break;

-- 
Muli Ben-Yehuda
http://www.mulix.org


- 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 : Fri Feb 28 2003 - 22:00:51 EST