]> err.no Git - linux-2.6/blobdiff - sound/pci/ali5451/ali5451.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6] / sound / pci / ali5451 / ali5451.c
index e2c8666e06ade4a0bf399ccfad6dc5eeab781f70..05b4c869694188f5955a29449b19c469662fbc75 100644 (file)
@@ -731,8 +731,7 @@ static void snd_ali_detect_spdif_rate(struct snd_ali *codec)
                return;
        }
 
-       count = 0;
-       while (count++ <= 50000) {
+       for (count = 0; count <= 50000; count++) {
                snd_ali_delay(codec, 6);
                bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1));
                R2 = bval & 0x1F;