patch-1.3.36 linux/drivers/sound/sscape.c

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

diff -u --recursive --new-file v1.3.35/linux/drivers/sound/sscape.c linux/drivers/sound/sscape.c
@@ -693,16 +693,10 @@
 	copr_buffer    *buf;
 	int             err;
 
-	buf = (copr_buffer *) (
-				{
-				caddr_t x;
-			     x = kmalloc (sizeof (copr_buffer), GFP_KERNEL);
-				x;
-				}
-	);
+	buf = (copr_buffer *) kmalloc (sizeof (copr_buffer), GFP_KERNEL);
 	if (buf == NULL)
 	  return -ENOSPC;
-	memcpy_fromfs (((char *) buf), &(((char *) arg)[0]), (sizeof (*buf)));
+	memcpy_fromfs ((char *) buf, &(((char *) arg)[0]), sizeof (*buf));
 	err = download_boot_block (dev_info, buf);
 	kfree (buf);
 	return err;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this