mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: Remove non null 'vm' check from qemuMonitorOpen
The prototype requires not passing a NULL in the parameter and the callers all would fail far before this code would fail if 'vm' was NULL, so just remove the check. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
802579b5d6
commit
2f9703e094
@ -910,8 +910,7 @@ qemuMonitorOpen(virDomainObjPtr vm,
|
||||
case VIR_DOMAIN_CHR_TYPE_UNIX:
|
||||
hasSendFD = true;
|
||||
if ((fd = qemuMonitorOpenUnix(config->data.nix.path,
|
||||
vm ? vm->pid : 0,
|
||||
timeout)) < 0)
|
||||
vm->pid, timeout)) < 0)
|
||||
return NULL;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user