diff options
author | Ioan Orghici <ioanorghici@gmail.com> | 2013-03-10 09:46:00 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-03-11 06:03:54 -0400 |
commit | 0fa24ce3f57144e390a1566774c23434975a52a9 (patch) | |
tree | 03472bc98d53c9e36154af28fc43f1cb07237f54 /arch/x86/kvm/vmx.c | |
parent | 7bc7ae25b1438bb9fe1f176b951d758789847640 (diff) |
kvm: remove cast for kmalloc return value
Signed-off-by: Ioan Orghici<ioan.orghici@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 260da9ac1678..473a5fe7e006 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -5286,8 +5286,7 @@ static struct loaded_vmcs *nested_get_current_vmcs02(struct vcpu_vmx *vmx) | |||
5286 | } | 5286 | } |
5287 | 5287 | ||
5288 | /* Create a new VMCS */ | 5288 | /* Create a new VMCS */ |
5289 | item = (struct vmcs02_list *) | 5289 | item = kmalloc(sizeof(struct vmcs02_list), GFP_KERNEL); |
5290 | kmalloc(sizeof(struct vmcs02_list), GFP_KERNEL); | ||
5291 | if (!item) | 5290 | if (!item) |
5292 | return NULL; | 5291 | return NULL; |
5293 | item->vmcs02.vmcs = alloc_vmcs(); | 5292 | item->vmcs02.vmcs = alloc_vmcs(); |