From a2911d39dcca7acc34f3e0928a4543787759cd50 Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Tue, 6 Sep 2011 02:23:51 +0300 Subject: [PATCH] kvm tools: Remove unconditional warning in ivshmem This patch prevents printing a warning if ivshmem device wasn't requested. Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- hw/pci-shmem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/pci-shmem.c b/hw/pci-shmem.c index 295f5cd..f820164 100644 --- a/hw/pci-shmem.c +++ b/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)