]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
KVM: PPC: Book3S HV: Delete an error message for a failed memory allocation in kvmppc...
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 5 Oct 2017 11:16:51 +0000 (13:16 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 14 Oct 2017 05:38:15 +0000 (16:38 +1100)
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>
arch/powerpc/kvm/book3s_64_mmu_hv.c

index 7c62967d672caa818d12c26620520603fb3c49c7..7df89d58ee91cb0865e794c16f91b8e345942810 100644 (file)
@@ -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