mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Resolve Coverity DEADCODE
Commit id 'f967e7a6' didn't place the closing parentheses quite right causing DEADCODE errors since the rc setting/comparison was wrong.
This commit is contained in:
parent
4b48ba4af5
commit
ebd62ebaaa
@ -1586,7 +1586,7 @@ int qemuDomainAttachChrDevice(virQEMUDriverPtr driver,
|
||||
if (qemuAssignDeviceChrAlias(vmdef, chr, -1) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if ((rc = qemuDomainAttachChrDeviceAssignAddr(priv, chr) < 0))
|
||||
if ((rc = qemuDomainAttachChrDeviceAssignAddr(priv, chr)) < 0)
|
||||
goto cleanup;
|
||||
if (rc == 1)
|
||||
need_release = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user