Remove useless call to virCapabilitiesFreeMachines as the pointers were
cleared and the unneeded 'ret' variable. Since we don't need to clear
the 'machines' pointer now, remove that as well.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
virCapsGuest *guest;
virCapsGuestMachine **machines = NULL;
size_t nmachines = 0;
- int ret = -1;
if (!binary)
return 0;
guestarch, binary,
NULL, nmachines, machines);
- machines = NULL;
- nmachines = 0;
-
/* CPU selection is always available, because all QEMU versions
* we support can use at least '-cpu host' */
virCapabilitiesAddGuestFeature(guest, VIR_CAPS_GUEST_FEATURE_TYPE_CPUSELECTION);
virCapabilitiesAddGuestFeature(guest, VIR_CAPS_GUEST_FEATURE_TYPE_NONPAE);
}
- ret = 0;
-
- virCapabilitiesFreeMachines(machines, nmachines);
-
- return ret;
+ return 0;
}