mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemuBuildMachineCommandLine: Drop needless check
The machine can not be NULL at this point - qemuDomainDefPostParse() makes sure it isn't. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
8ba1792785
commit
fe43b3a5a5
@ -6723,13 +6723,6 @@ qemuBuildMachineCommandLine(virCommandPtr cmd,
|
||||
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
|
||||
size_t i;
|
||||
|
||||
/* This should *never* be NULL, since we always provide
|
||||
* a machine in the capabilities data for QEMU. So this
|
||||
* check is just here as a safety in case the unexpected
|
||||
* happens */
|
||||
if (!def->os.machine)
|
||||
return 0;
|
||||
|
||||
virCommandAddArg(cmd, "-machine");
|
||||
virBufferAdd(&buf, def->os.machine, -1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user