kvm: remove cast for kmalloc return value
authorIoan Orghici <ioanorghici@gmail.com>
Sun, 10 Mar 2013 13:46:00 +0000 (15:46 +0200)
committerGleb Natapov <gleb@redhat.com>
Mon, 11 Mar 2013 10:03:54 +0000 (12:03 +0200)
Signed-off-by: Ioan Orghici<ioan.orghici@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c

index 260da9ac1678c9d348db60cf188ae272365c57c0..473a5fe7e00651508838cd65a116ade826bdc1cc 100644 (file)
@@ -5286,8 +5286,7 @@ static struct loaded_vmcs *nested_get_current_vmcs02(struct vcpu_vmx *vmx)
        }
 
        /* Create a new VMCS */
-       item = (struct vmcs02_list *)
-               kmalloc(sizeof(struct vmcs02_list), GFP_KERNEL);
+       item = kmalloc(sizeof(struct vmcs02_list), GFP_KERNEL);
        if (!item)
                return NULL;
        item->vmcs02.vmcs = alloc_vmcs();