ia64/xen-unstable

changeset 7851:80b61bdceb26

Remove unnecessary cast of kmalloc() result.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Nov 16 11:35:26 2005 +0100 (2005-11-16)
parents 54a05cd0d060
children 1df8b53bdd37
files linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Wed Nov 16 11:34:54 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Wed Nov 16 11:35:26 2005 +0100
     1.3 @@ -679,7 +679,7 @@ static void blkif_recover(struct blkfron
     1.4  	int j;
     1.5  
     1.6  	/* Stage 1: Make a safe copy of the shadow state. */
     1.7 -	copy = (struct blk_shadow *)kmalloc(sizeof(info->shadow), GFP_KERNEL);
     1.8 +	copy = kmalloc(sizeof(info->shadow), GFP_KERNEL);
     1.9  	BUG_ON(copy == NULL);
    1.10  	memcpy(copy, info->shadow, sizeof(info->shadow));
    1.11