]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_domain_address: Drop needless typecast to virDomainDiskModel
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 2 May 2023 10:19:36 +0000 (12:19 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 15 Sep 2023 08:34:50 +0000 (10:34 +0200)
commit0041723233958eecb89f09de79e13f22a56763c4
tree996d32a0f1eb844845eb398996bf6c4e8437e7c6
parent75cdb664d00025302ceb2c5429a8d0b9a2890d1e
qemu_domain_address: Drop needless typecast to virDomainDiskModel

The 'mode' member of _virDomainDiskDef is already declared of
virDomainDiskModel type. Hence, there is no need to typecast the
variable when passing to switch() statements.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain_address.c