kvm: remove cast for kmalloc return value

Signed-off-by: Ioan Orghici<ioan.orghici@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
This commit is contained in:
Ioan Orghici 2013-03-10 15:46:00 +02:00 committed by Gleb Natapov
parent 7bc7ae25b1
commit 0fa24ce3f5
1 changed files with 1 additions and 2 deletions

View 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();