Răsfoiți Sursa

[ALSA] au88x0_synth.c bugfix

This patch fixes the code in vortex_wt_SetFrequency() to what seems to
have been intended.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Adrian Bunk 17 ani în urmă
părinte
comite
51c80cb65f
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      sound/pci/au88x0/au88x0_synth.c

+ 2 - 2
sound/pci/au88x0/au88x0_synth.c

@@ -370,8 +370,8 @@ static void vortex_wt_SetFrequency(vortex_t * vortex, int wt, unsigned int sr)
 			while ((edx & 0x80000000) == 0) {
 				edx <<= 1;
 				eax--;
-				if (eax == 0) ;
-				break;
+				if (eax == 0)
+					break;
 			}
 			if (eax)
 				edx <<= 1;