virQEMUCapsInitGuestFromBinary: Remove return value

The function always returns 0.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa
2023-04-03 09:19:07 +02:00
parent 6481b06a19
commit a4c03bdd59
3 changed files with 9 additions and 18 deletions
+1 -7
View File
@@ -102,13 +102,7 @@ testGetCaps(char *capsData, const testQemuData *data)
return NULL;
}
if (virQEMUCapsInitGuestFromBinary(caps,
binary,
qemuCaps,
arch) < 0) {
fprintf(stderr, "failed to create the capabilities from qemu");
return NULL;
}
virQEMUCapsInitGuestFromBinary(caps, binary, qemuCaps, arch);
return g_steal_pointer(&caps);
}