vfio/type1: Use the new helper to find vfio_group
authorZenghui Yu <yuzenghui@huawei.com>
Thu, 22 Oct 2020 12:24:17 +0000 (20:24 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Nov 2020 21:58:29 +0000 (14:58 -0700)
commit572f64c71e0fe30089699b22ce0ca3d4bf452ce9
tree8e1f6e2012e338f8d5f20a997b789ae6a9a49ba4
parent3cea11cd5e3b00d91caf0b4730194039b45c5891
vfio/type1: Use the new helper to find vfio_group

When attaching a new group to the container, let's use the new helper
vfio_iommu_find_iommu_group() to check if it's already attached. There
is no functional change.

Also take this chance to add a missing blank line.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c