]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: Check for virDomainDiskInsert() retval properly
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Apr 2019 13:14:17 +0000 (15:14 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Apr 2019 13:14:17 +0000 (15:14 +0200)
commit08193fdbf543e4034413f3757c2eac81ce05d53d
treec4f43e0d8232f77983894a0ff088532d56f4fb8c
parentdc2d82a2b686a908f25c893ca0c4ff98b298c1fe
src: Check for virDomainDiskInsert() retval properly

Our coding style specifies that only negative values are considered as
error. Check for return value of virDomainDiskInsert() properly,
following the style. Not that the function can now return anything other
than 0 or -1, but it just triggers my OCD.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c