Skip to contentSkip to conversation

trident 1/1 fix operator precedence bug

PATCH New Adrian Bunk 1 participant 1 message Mar 31, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trident 1/1 fix operator precedence bug

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 <[email protected]>. Tested, works fine.

<-- snip -->

Please apply
Adrian

drivers/sound/trident.c renamed from drivers/sound/trident.c.old +1 -1
@@ -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;