* [2.4 patch] trident 1/1 fix operator precedence bug
@ 2003-03-31 21:06 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2003-03-31 21:06 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel, Muli Ben-Yehuda, John Levon, trivial
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-31 20:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-31 21:06 [2.4 patch] trident 1/1 fix operator precedence bug Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox