From: Ioan Orghici <ioanorghici@gmail.com>
To: mtosatti@redhat.com
Cc: gleb@redhat.com, tglx@linutronix.de, mingo@redhat.com,
hpa@zytor.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
x86@kernel.org, Ioan Orghici <ioan.orghici@gmail.com>
Subject: [PATCH] kvm: remove cast for kmalloc return value
Date: Sun, 10 Mar 2013 15:46:00 +0200 [thread overview]
Message-ID: <1362923160-26300-1-git-send-email-ioan.orghici@gmail.com> (raw)
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
next reply other threads:[~2013-03-10 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-10 13:46 Ioan Orghici [this message]
2013-03-11 10:04 ` Gleb Natapov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1362923160-26300-1-git-send-email-ioan.orghici@gmail.com \
--to=ioanorghici@gmail.com \
--cc=gleb@redhat.com \
--cc=hpa@zytor.com \
--cc=ioan.orghici@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=mtosatti@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®