[libvirt] [PATCH 4/7] Remove useless variable in qemuDomainAssignAddresses

Peter Krempa pkrempa at redhat.com
Tue May 3 10:53:37 UTC 2016


On Tue, May 03, 2016 at 12:47:24 +0200, Ján Tomko wrote:
> 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 | 22 ++++++++++------------
>  1 file changed, 10 insertions(+), 12 deletions(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160503/77544b9b/attachment-0001.sig>


More information about the libvir-list mailing list