mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: combine conditionals
Trivial fix to improve readability by combining these into a compound conditional. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
7653283df9
commit
04b1c2d1e2
@ -4020,9 +4020,10 @@ int qemuMonitorJSONAddFileHandleToSet(qemuMonitorPtr mon,
|
||||
if (virJSONValueObjectCreate(&args, "S:opaque", opaque, NULL) < 0)
|
||||
return -1;
|
||||
|
||||
if (fdset >= 0)
|
||||
if (virJSONValueObjectAdd(args, "j:fdset-id", fdset, NULL) < 0)
|
||||
return -1;
|
||||
if (fdset >= 0 &&
|
||||
virJSONValueObjectAdd(args, "j:fdset-id", fdset, NULL) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!(cmd = qemuMonitorJSONMakeCommandInternal("add-fd", g_steal_pointer(&args))))
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user