]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: agent: remove impossible errors
authorJán Tomko <jtomko@redhat.com>
Mon, 5 Oct 2020 19:21:07 +0000 (21:21 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 8 Oct 2020 09:16:07 +0000 (11:16 +0200)
commitb5c281e81ba1cd027fd1e77078cae2f0ccdc0327
treec5594db0bff9491362ec7177b41f44f0dca9a589
parent33fd3cbeb693e9101b89a497e71874f5d337732a
qemu: agent: remove impossible errors

For both 'ip_addr_arr' and 'ret_array', we:
1) already checked that they are arrays
2) only iterate up to the array size

Remove the duplicate checks.

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