]> xenbits.xensource.com Git - libvirt.git/commit
qemu: domain: Inline qemuDomainStorageSourceHasAuth
authorPeter Krempa <pkrempa@redhat.com>
Fri, 22 Apr 2022 15:15:33 +0000 (17:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 Apr 2022 14:34:59 +0000 (16:34 +0200)
commitad957d92a607731a00de8b946718d43cff8482a4
tree2b61ca1d1c610b0b3bad5bb635c745733c3d63ea
parent3172b0ed3fd6802a8eb6e46d008b47ef959baf6a
qemu: domain: Inline qemuDomainStorageSourceHasAuth

The iSCSI hostdev code doesn't require the check for the empty drive
and the check for the protocol because those are already guaranteed at
that point.

In qemuDomainSecretStorageSourcePrepare we don't need to check the
network disk type either as it's now guaranteed by the definition
validator.

Thus both callers can simply check whether src->auth is present and the
helper can be removed.

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