vfio: Remove superfluous error report in vfio_listener_region_add()
authorCédric Le Goater <clg@redhat.com>
Thu, 6 Feb 2025 13:14:35 +0000 (14:14 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 11 Feb 2025 13:15:19 +0000 (14:15 +0100)
commitbe7d8579eb5758c0edf81eb068017a56471a77e0
tree88cab7869b06f012d4fd0dac431f73cb5af95124
parent889695f8f3c10647cc27a3788b4a3f1d0192926c
vfio: Remove superfluous error report in vfio_listener_region_add()

For pseries machines, commit 567b5b309abe ("vfio/pci: Relax DMA map
errors for MMIO regions") introduced 2 error reports to notify the
user of MMIO mapping errors. Consolidate both code paths under one.

Cc: Harsh Prateek Bora <harshpb@linux.ibm.com>
Cc: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250206131438.1505542-8-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c