public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: linux-kernel@vger.kernel.org, Muli Ben-Yehuda <mulix@mulix.org>,
	John Levon <levon@movementarian.org>,
	trivial@rustcorp.com.au
Subject: [2.4 patch] trident 1/1 fix operator precedence bug
Date: Mon, 31 Mar 2003 23:06:21 +0200	[thread overview]
Message-ID: <20030331210620.GA864@fs.tum.de> (raw)

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;

                 reply	other threads:[~2003-03-31 20:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030331210620.GA864@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=levon@movementarian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=mulix@mulix.org \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox