vfio: fix FreeBSD clear group stub
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 28 Oct 2021 14:15:17 +0000 (14:15 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 8 Nov 2021 15:42:44 +0000 (16:42 +0100)
commitbf8b792f3b8519fecf3585ffac15da6f7bca2de9
tree87a92ec98e941a50b6cc9ad2744f841778356b9c
parent84e03bde1ccd46057d6bc1eb807e96ea1ac390e3
vfio: fix FreeBSD clear group stub

On FreeBSD, `rte_vfio_clear_group()` was returning 0 even though this
function is not valid for FreeBSD, and is called out to return error in
doxygen comments.
Fix the return value to match documentation.

Fixes: c564a2a20093 ("vfio: expose clear group function for internal usages")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/eal/freebsd/eal.c