patch-2.4.10 linux/drivers/sound/emu10k1/cardwo.c

Next file: linux/drivers/sound/emu10k1/passthrough.c
Previous file: linux/drivers/sound/emu10k1/cardwi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/drivers/sound/emu10k1/cardwo.c linux/drivers/sound/emu10k1/cardwo.c
@@ -581,7 +581,7 @@
 	u32 sizetocopy, sizetocopy_now, start;
 	unsigned long flags;
 
-	sizetocopy = min(u32, buffer->size, *size);
+	sizetocopy = min_t(u32, buffer->size, *size);
 	*size = sizetocopy;
 
 	if (!sizetocopy)

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