qemu-sockets: simplify error handling
commit58c652c08acaabcf5f22d33021d9ffeae2f59263
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Jan 2016 11:28:33 +0000 (22 12:28 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 11 Feb 2016 12:15:46 +0000 (11 15:15 +0300)
treef43dc83a01e65dd2da2670c956f7b7422425e2c3
parent945123a554c39b68f38cec87403de1f783a86906
qemu-sockets: simplify error handling

Just go always through the err label.  (Noticed because Coverity
complains that peer is always non-NULL in the error cleanup code,
but removing the "if" is arguably more prone to introducing the
opposite bug in the future).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/qemu-sockets.c