]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Change return type of virPCIDeviceSetUsedBy to void
authorAlexander Kuznetsov <kuznetsovam@altlinux.org>
Mon, 16 Dec 2024 09:41:05 +0000 (12:41 +0300)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 16 Dec 2024 10:28:21 +0000 (11:28 +0100)
commited8eec073fe50550f5856d67bc33ef2472ed49be
treef0ce6216aecdcff69be76742f0fe06c9fff7c263
parent4e987a86b5e4c9faf36aa5abad47fe6db6314950
util: Change return type of virPCIDeviceSetUsedBy to void

This function return value is invariant since 18f3771, so change
its type and remove all dependent checks.

Found by Linux Verification Center (linuxtesting.org) with Svace.

Reported-by: Pavel Nekrasov <p.nekrasov@fobos-nt.ru>
Signed-off-by: Alexander Kuznetsov <kuznetsovam@altlinux.org>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/hypervisor/virhostdev.c
src/util/virpci.c
src/util/virpci.h