]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainDiskLookupByNodename: Simplify node name lookup
authorPeter Krempa <pkrempa@redhat.com>
Mon, 7 Dec 2020 11:24:31 +0000 (12:24 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 8 Dec 2020 14:12:33 +0000 (15:12 +0100)
commitc3bb2b2d5d0098b556a88b696540f1a65641a7c2
tree7c1a3e9e4232f570f8f99e09f93eb8aab364672f
parentb9dcaede6574b80fa2bd6645ff74a82c892792a4
qemuDomainDiskLookupByNodename: Simplify node name lookup

Use dummy variable to fill 'src' so that access to it doesn't need to be
conditionalized and use temporary variable for 'disk' rather than
dereferencing the array multiple times.

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