]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: agent: simplify access to ifaces_ret
authorJán Tomko <jtomko@redhat.com>
Mon, 5 Oct 2020 20:22:00 +0000 (22:22 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 8 Oct 2020 09:16:08 +0000 (11:16 +0200)
commitaa61f7f9c9e5d8a0ab425961a801f6e88f381c96
tree45c8f2c2d2eced12cafae2a5f6a1e04cf240371b
parent40b4f68d2d4dab9f6cce3a4b8597efefbc075476
qemu: agent: simplify access to ifaces_ret

We have a local 'iface' variable that contains the same value
eventually. Initialize it early instead of indexing two more
times.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
src/qemu/qemu_agent.c