The patch titled
sound/oss/trident.c: fix incorrect test in trident_ac97_set()
has been removed from the -mm tree. Its filename was
sound-oss-tridentc-fix-incorrect-test-in-trident_ac97_set.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: sound/oss/trident.c: fix incorrect test in trident_ac97_set()
From: Roel Kluin <[EMAIL PROTECTED]>
If count reaches zero, the loop ends, but the postfix decrement still
subtracts: testing for 'count == 0' will not work.
Signed-off-by: Roel Kluin <[EMAIL PROTECTED]>
Reviewed-by: Ray Lee <[EMAIL PROTECTED]>
Acked-by: Muli Ben-Yehuda <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
sound/oss/trident.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN
sound/oss/trident.c~sound-oss-tridentc-fix-incorrect-test-in-trident_ac97_set
sound/oss/trident.c
---
a/sound/oss/trident.c~sound-oss-tridentc-fix-incorrect-test-in-trident_ac97_set
+++ a/sound/oss/trident.c
@@ -2935,7 +2935,7 @@ trident_ac97_set(struct ac97_codec *code
do {
if ((inw(TRID_REG(card, address)) & busy) == 0)
break;
- } while (count--);
+ } while (--count);
data |= (mask | (reg & AC97_REG_ADDR));
@@ -2996,7 +2996,7 @@ trident_ac97_get(struct ac97_codec *code
data = inl(TRID_REG(card, address));
if ((data & busy) == 0)
break;
- } while (count--);
+ } while (--count);
spin_unlock_irqrestore(&card->lock, flags);
if (count == 0) {
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
git-alsa.patch
git-dvb.patch
git-mtd.patch
git-scsi-misc.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html