]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: remove nested branching to enhance readability
authorPavel Mores <pmores@redhat.com>
Fri, 6 Dec 2019 09:45:27 +0000 (10:45 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Dec 2019 13:42:56 +0000 (14:42 +0100)
commit7b2a6e8cf754f571f972aaa6d0cca9fba576fee8
treed41c54582fd2aea1825726d7be217daf26d28ca0
parent4c53267b70fc5c548b6530113c3f96870d8d7fc1
qemu: remove nested branching to enhance readability

This is a follow-up to patch series posted in

https://www.redhat.com/archives/libvir-list/2019-November/msg01180.html

It implements a suggestion made by Cole in

https://www.redhat.com/archives/libvir-list/2019-November/msg01207.html

and discussed in follow-up messages as there were no objections to the
change.

The aim is to make the code more readable by replacing nested branching
with a flat structure.

Signed-off-by: Pavel Mores <pmores@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c