]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_alias: Rewrite of code pattern
authorKristina Hanicova <khanicov@redhat.com>
Wed, 24 Nov 2021 16:12:53 +0000 (17:12 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Nov 2021 08:10:36 +0000 (09:10 +0100)
commite9b7ebee1e1058e7ae84125868fb7dce4e460059
treec97ef635f78229e72ef0a06f81ce55fae3414c17
parent46caf6bac9c2b651cd2e990e1664f54136341dab
qemu_alias: Rewrite of code pattern

This patch rewrites the pattern using early return where it is
not needed and changes the return type of the functions to 'void'
if possible.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_alias.c
src/qemu/qemu_alias.h
src/qemu/qemu_hotplug.c