]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: scsi: invert logic in createVport
authorJán Tomko <jtomko@redhat.com>
Thu, 24 Sep 2020 18:55:24 +0000 (20:55 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 1 Oct 2020 10:34:13 +0000 (12:34 +0200)
commitff146d09535f1e4f3432dcee717530a5d4cfef42
tree530aa6511433df8edfcaadf7fa176f3d0852b422
parent6e9a2351d447c1468cae6bb2b45d78f203c55025
storage: scsi: invert logic in createVport

Check whether the alloc result is negative (which is
cannot happen with current code) to reduce churn in
the following commit.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/storage/storage_backend_scsi.c