]> xenbits.xensource.com Git - libvirt.git/commit
Remove useless variable in qemuDomainAssignAddresses
authorJán Tomko <jtomko@redhat.com>
Thu, 28 Apr 2016 13:35:41 +0000 (15:35 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 3 May 2016 10:07:46 +0000 (12:07 +0200)
commit2d61934a2163bcb8f11ddab4aad7c3b7b9f3a98b
treef7d8ccc4ac89f54bace6799b93cd4a0da0e06fd6
parent7c6733a2343c068c0ab9d0f591ce7f05f9dfaed8
Remove useless variable in qemuDomainAssignAddresses

We do not need to propagate the exact return values
and the only possible ones are 0 and -1 anyway.

Remove the temporary variable and use the usual pattern:

if (f() < 0)
    return -1;
src/qemu/qemu_domain_address.c