aboutsummaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorSasha Levin <levinsasha928@gmail.com>2011-09-06 02:23:51 +0300
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:47 +0100
commita2911d39dcca7acc34f3e0928a4543787759cd50 (patch)
tree51d5e3985301fe62a8f7003a218d2fb1d02df6b1 /hw
parent95d13a52061b96df0cdaf8f55e5b46f852da1f49 (diff)
downloadkvmtool-a2911d39dcca7acc34f3e0928a4543787759cd50.tar.gz
kvm tools: Remove unconditional warning in ivshmem
This patch prevents printing a warning if ivshmem device wasn't requested. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci-shmem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/pci-shmem.c b/hw/pci-shmem.c
index 295f5cdb..f8201648 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)