mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-06 13:41:44 +00:00
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>
This commit is contained in:
+1
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user