[PATCH] trident 1/1 fix operator precedence bug

Muli Ben-Yehuda (mulix@mulix.org)
Sat, 1 Mar 2003 01:11:50 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-7584-1046474639-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

--- 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 =3D 10;
while(1) {
wcontrol =3D inw(TRID_REG(card, ALI_AC97_WRITE));
- if(!wcontrol & 0x8000)
+ if(!(wcontrol & 0x8000))
break;
if(ncount <=3D 0)
break;

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

--=_courier-7584-1046474639-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+X+y2KRs727/VN8sRAqRQAJ4zIOhS/wYXIJIuVHthzogyqIUVUQCfQljk
wh9eP6+NveIDH3aaq/bpHMA=
=UGe8
-----END PGP SIGNATURE-----

--=_courier-7584-1046474639-0001-2--