patch-2.2.16 linux/drivers/sound/vidc_audio.c

Next file: linux/drivers/sound/ymf_sb.c
Previous file: linux/drivers/sound/via82cxxx_audio.c
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/drivers/sound/vidc_audio.c linux/drivers/sound/vidc_audio.c
@@ -79,9 +79,9 @@
 			newsize = 208;
 		if (newsize > 4096)
 			newsize = 4096;
-		for (new2size = 128; new2size < newsize; new2size <<= 1)
-			if (new2size - newsize > newsize - (new2size >> 1))
-				new2size >>= 1;
+		for (new2size = 128; new2size < newsize; new2size <<= 1);
+		if (new2size - newsize > newsize - (new2size >> 1))
+			new2size >>= 1;
 		dma_bufsize = new2size;
 	}
 	return 250000 / vidc_audio_rate;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)