]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73811218110e5585f36ecc0236dd14987477f18a
tree8e1f6e2012e338f8d5f20a997b789ae6a9a49ba4
parentcfc45683e0b3f77d850d7167351994c36f3fdee2
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