]> xenbits.xensource.com Git - libvirt.git/commit
qemu_domain.c: turn qemuDomainChrDefDropDefaultPath to void
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 9 Jan 2020 18:33:47 +0000 (15:33 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 31 Jan 2020 14:25:33 +0000 (15:25 +0100)
commit02ad5d23598426ad9d6ff19b78de4fe18755799c
tree1c485dc4be522d94322125a62d6cf27b82fe00b3
parentdb780004a9d34962512c3b7be71b11a60c5abcf7
qemu_domain.c: turn qemuDomainChrDefDropDefaultPath to void

qemuDomainChrDefDropDefaultPath() returns an int, but it's
always returning 0. Callers are checking for result < 0 to
run their cleanup code needlessly.

Turn the function to 'void' and adjust the callers.

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