This patch prevents printing a warning if ivshmem device wasn't requested.

Signed-off-by: Sasha Levin <[email protected]>
---
 tools/kvm/hw/pci-shmem.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/tools/kvm/hw/pci-shmem.c b/tools/kvm/hw/pci-shmem.c
index 295f5cd..f820164 100644
--- a/tools/kvm/hw/pci-shmem.c
+++ b/tools/kvm/hw/pci-shmem.c
@@ -222,10 +222,8 @@ int pci_shmem__init(struct kvm *kvm)
        u8 dev, line, pin;
        char *mem;
 
-       if (shmem_region == 0) {
-               pr_warning("pci_shmem_init: memory region not registered\n");
+       if (shmem_region == 0)
                return 0;
-       }
 
        /* Register good old INTx */
        if (irq__register_device(PCI_DEVICE_ID_PCI_SHMEM, &dev, &pin, &line) < 
0)
-- 
1.7.6.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to