summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-10-05 13:16:51 +0200
committerPaul Mackerras <paulus@ozlabs.org>2017-10-14 16:38:15 +1100
commit9c7e53dc00a543478b46c6a90694a41be69a089d (patch)
tree16565ef323210f31724c2a146f9c75bd9a03ddc3
parent4bdcb7016f95dd7668cd2f55f494ba449443e8d7 (diff)
downloadlinux-stable-9c7e53dc00a543478b46c6a90694a41be69a089d.tar.gz
linux-stable-9c7e53dc00a543478b46c6a90694a41be69a089d.tar.bz2
linux-stable-9c7e53dc00a543478b46c6a90694a41be69a089d.zip
KVM: PPC: Book3S HV: Delete an error message for a failed memory allocation in kvmppc_allocate_hpt()
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
-rw-r--r--arch/powerpc/kvm/book3s_64_mmu_hv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c
index 7c62967d672c..7df89d58ee91 100644
--- a/arch/powerpc/kvm/book3s_64_mmu_hv.c
+++ b/arch/powerpc/kvm/book3s_64_mmu_hv.c
@@ -106,7 +106,6 @@ int kvmppc_allocate_hpt(struct kvm_hpt_info *info, u32 order)
/* Allocate reverse map array */
rev = vmalloc(sizeof(struct revmap_entry) * npte);
if (!rev) {
- pr_err("kvmppc_allocate_hpt: Couldn't alloc reverse map array\n");
if (cma)
kvm_free_hpt_cma(page, 1 << (order - PAGE_SHIFT));
else