* [PATCH] kvm: remove cast for kmalloc return value
@ 2013-03-10 13:46 Ioan Orghici
2013-03-11 10:04 ` Gleb Natapov
0 siblings, 1 reply; 2+ messages in thread
From: Ioan Orghici @ 2013-03-10 13:46 UTC (permalink / raw)
To: mtosatti; +Cc: gleb, tglx, mingo, hpa, kvm, linux-kernel, x86, Ioan Orghici
Signed-off-by: Ioan Orghici<ioan.orghici@gmail.com>
---
arch/x86/kvm/vmx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 7cc566b..35c2c8f 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5261,8 +5261,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();
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kvm: remove cast for kmalloc return value
2013-03-10 13:46 [PATCH] kvm: remove cast for kmalloc return value Ioan Orghici
@ 2013-03-11 10:04 ` Gleb Natapov
0 siblings, 0 replies; 2+ messages in thread
From: Gleb Natapov @ 2013-03-11 10:04 UTC (permalink / raw)
To: Ioan Orghici
Cc: mtosatti, tglx, mingo, hpa, kvm, linux-kernel, x86, Ioan Orghici
On Sun, Mar 10, 2013 at 03:46:00PM +0200, Ioan Orghici wrote:
> Signed-off-by: Ioan Orghici<ioan.orghici@gmail.com>
> ---
> arch/x86/kvm/vmx.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index 7cc566b..35c2c8f 100644
> --- a/arch/x86/kvm/vmx.c
> +++ b/arch/x86/kvm/vmx.c
> @@ -5261,8 +5261,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();
Applied, thanks.
--
Gleb.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-11 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-10 13:46 [PATCH] kvm: remove cast for kmalloc return value Ioan Orghici
2013-03-11 10:04 ` Gleb Natapov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox