[libvirt] [PATCH 7/7] Simplify some conditions
Peter Krempa
pkrempa at redhat.com
Tue Mar 6 14:25:38 UTC 2018
On Tue, Mar 06, 2018 at 15:01:39 +0100, Ján Tomko wrote:
> In qemuMigrationSrcRun, we already checked for non-NULL mig
> and then dereferenced it. It's only possible for mig to be
> NULL in the error section.
>
> In remoteConnectOpen, conn->uri cannot be NULL in the second
> part of the OR expression due to short-circuit evaluation.
>
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
I'd commit those as 2 commits.
ACK if you split it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180306/e53bf8f1/attachment-0001.sig>
More information about the libvir-list
mailing list