vfio/pci: Make vfio_populate_device() return a bool
commite942d8f08dd54c5b4ca309e8ccd22193192543a5
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Wed, 22 May 2024 04:40:05 +0000 (22 12:40 +0800)
committerCédric Le Goater <clg@redhat.com>
Wed, 22 May 2024 08:04:21 +0000 (22 10:04 +0200)
tree1a99a918c8831e08133e78590b82256dce009693
parent713b59a674b407b894161ada0b6541ce4e0f68d7
vfio/pci: Make vfio_populate_device() return a bool

Since vfio_populate_device() takes an 'Error **' argument,
best practices suggest to return a bool. See the qapi/error.h
Rules section.

By this chance, pass errp directly to vfio_populate_device() to
avoid calling error_propagate().

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/pci.c