[libvirt PATCH 2/2] qemu: remove unused argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/qemu/qemu_validate.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index f750684414..d6aa2a58ab 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -1781,12 +1781,8 @@ qemuValidateNetSupportsCoalesce(virDomainNetType type)
  */
 static int
 qemuValidateDomainDefVhostUserRequireSharedMemory(const virDomainDef *def,
-                                                  const char *name,
-                                                  virQEMUCaps *qemuCaps G_GNUC_UNUSED)
+                                                  const char *name)
 {
-    const char *defaultRAMId = virQEMUCapsGetMachineDefaultRAMid(qemuCaps,
-                                                                 def->virtType,
-                                                                 def->os.machine);
     size_t numa_nodes = virDomainNumaGetNodeCount(def->numa);
     size_t i;
 
@@ -3357,8 +3353,7 @@ qemuValidateDomainDeviceDefDisk(const virDomainDiskDef *disk,
             return -1;
         }
 
-        if (qemuValidateDomainDefVhostUserRequireSharedMemory(def, "vhostuser",
-                                                              qemuCaps) < 0) {
+        if (qemuValidateDomainDefVhostUserRequireSharedMemory(def, "vhostuser") < 0) {
             return -1;
         }
     }
@@ -4524,8 +4519,7 @@ qemuValidateDomainDeviceDefFS(virDomainFSDef *fs,
                            _("virtiofs does not support fmode and dmode"));
             return -1;
         }
-        if (qemuValidateDomainDefVhostUserRequireSharedMemory(def, "virtiofs",
-                                                              qemuCaps) < 0) {
+        if (qemuValidateDomainDefVhostUserRequireSharedMemory(def, "virtiofs") < 0) {
             return -1;
         }
         if (fs->info.bootIndex &&
-- 
2.39.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux