[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove unnecessary cast of kmalloc() result.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 80b61bdceb26ea5037da9670e5a1d75ab1eaad05
# Parent  54a05cd0d060999eb8bc0d6be8fab7a4b9531b90
Remove unnecessary cast of kmalloc() result.

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r 54a05cd0d060 -r 80b61bdceb26 
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Wed Nov 16 
10:34:54 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Wed Nov 16 
10:35:26 2005
@@ -679,7 +679,7 @@
        int j;
 
        /* Stage 1: Make a safe copy of the shadow state. */
-       copy = (struct blk_shadow *)kmalloc(sizeof(info->shadow), GFP_KERNEL);
+       copy = kmalloc(sizeof(info->shadow), GFP_KERNEL);
        BUG_ON(copy == NULL);
        memcpy(copy, info->shadow, sizeof(info->shadow));
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.