]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: command: Remove qemuBuildHasMasterKey
authorPeter Krempa <pkrempa@redhat.com>
Thu, 17 May 2018 08:43:26 +0000 (10:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 18 May 2018 07:00:05 +0000 (09:00 +0200)
The thin wrapper is not necessary.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c

index 19c7149b5b609ed5a440590c58e72074eca5f2f8..f3724a766b15bcfd15a910ed5378788b052d5e7d 100644 (file)
@@ -175,19 +175,6 @@ VIR_ENUM_IMPL(qemuNumaPolicy, VIR_DOMAIN_NUMATUNE_MEM_LAST,
               "interleave");
 
 
-/**
- * qemuBuildHasMasterKey:
- * @qemuCaps: QEMU binary capabilities
- *
- * Return true if this binary supports the secret -object, false otherwise.
- */
-static bool
-qemuBuildHasMasterKey(virQEMUCapsPtr qemuCaps)
-{
-    return virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_SECRET);
-}
-
-
 /**
  * qemuBuildMasterKeyCommandLine:
  * @cmd: the command to modify
@@ -211,7 +198,7 @@ qemuBuildMasterKeyCommandLine(virCommandPtr cmd,
      * means the domain won't be able to use a secret master key and is
      * not a failure.
      */
-    if (!qemuBuildHasMasterKey(priv->qemuCaps)) {
+    if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_OBJECT_SECRET)) {
         VIR_INFO("secret object is not supported by this QEMU binary");
         return 0;
     }