Commit e4caae91 authored by Muli Ben-Yehuda's avatar Muli Ben-Yehuda Committed by Linus Torvalds

[PATCH] trident 1/1 fix operator precedence bug

Fix an operator precedence bug that caused a comparison to always
return false. Patch from John Levon <levon@movementarian.org>.
parent 5828287e
......@@ -3059,7 +3059,7 @@ static void ali_ac97_set(struct trident_card *card, int secondary, u8 reg, u16 v
ncount = 10;
while(1) {
wcontrol = inw(TRID_REG(card, ALI_AC97_WRITE));
if(!wcontrol & 0x8000)
if(!(wcontrol & 0x8000))
break;
if(ncount <= 0)
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment