]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: remove else after return / goto
authorKristina Hanicova <khanicov@redhat.com>
Thu, 21 Jul 2022 11:30:44 +0000 (13:30 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Jul 2022 10:57:11 +0000 (12:57 +0200)
commitd90c92adb641aabf098b720de5d60ed901c172e4
tree49bdfd2327c1401d7ebe0d311ff85e5ad726aed0
parentff35ce0b5b05166102849155bddcbadadc125433
domain_conf: remove else after return / goto

The else branches are redundant because the execution will never
reach them if the conditions in the previous 'if' branches are
true.

I think this looks cleaner and is more readable, because having
'else' branch indicates that no return / break / goto is in the
previous branch and the function can reach it.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_conf.c