vfio: More vfio_file_is_group() use cases
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 7 Oct 2022 18:03:00 +0000 (12:03 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 7 Oct 2022 19:06:52 +0000 (13:06 -0600)
commitb1b8132a651cf6a5b18a01d8f1bd304f5d210315
tree6b65d806c86a3c832a3a393e142004487453cab1
parent3dd59a7dcb97e6e40d6385a1a3faa9392b6d184a
vfio: More vfio_file_is_group() use cases

Replace further open coded tests with helper.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/166516896843.1215571.5378890510536477434.stgit@omen
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_main.c