diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-11 19:54:06 +0100 |
---|---|---|
committer | Michael Ellerman <michael@ellerman.id.au> | 2013-04-18 05:03:56 +0200 |
commit | c843be8a5480c04a18410aaf32d5a339a8b3a61b (patch) | |
tree | 3ed27b007435be430ab483752dcbdbe8d0e7b018 /arch/powerpc/kvm | |
parent | powerpc/kgdb: Removed kmalloc returned value cast (diff) | |
download | linux-c843be8a5480c04a18410aaf32d5a339a8b3a61b.tar.xz linux-c843be8a5480c04a18410aaf32d5a339a8b3a61b.zip |
powerpc: remove cast for kmalloc/kzalloc return value
remove cast for kmalloc/kzalloc return value.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/book3s_pr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index 5e93438afb06..dbdc15aa8127 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -1039,7 +1039,7 @@ struct kvm_vcpu *kvmppc_core_vcpu_create(struct kvm *kvm, unsigned int id) if (!vcpu_book3s) goto out; - vcpu_book3s->shadow_vcpu = (struct kvmppc_book3s_shadow_vcpu *) + vcpu_book3s->shadow_vcpu = kzalloc(sizeof(*vcpu_book3s->shadow_vcpu), GFP_KERNEL); if (!vcpu_book3s->shadow_vcpu) goto free_vcpu; |