]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Drop needless check in virDomainFSInfoFormat()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Feb 2021 16:13:22 +0000 (17:13 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 16 Feb 2021 13:06:31 +0000 (14:06 +0100)
commit5922b2b104d60965fbf367e042dbb4dee366a424
tree11b3501815791022f003831b4f70b30650ea9625
parent67f8ccb4e203ddd899627d81e7ed4cb77d255348
qemu: Drop needless check in virDomainFSInfoFormat()

As the very first thing, this function checks whether the number
of items inside @agentinfo array is not negative. This is
redundant as the only caller - qemuDomainGetFSInfo() already
checked for that and would not even call this function if that
was the case.

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