diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-04-08 00:54:41 -0400 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2016-04-28 13:12:41 -0400 |
commit | 5ed4aba1265f3c7532bf4ae1f25a277568b86871 (patch) | |
tree | 1cd8280765db050fa281f29cb88b7606ca2aaa0f | |
parent | dc928109973336fd4d572d460cf3964d56aa087f (diff) |
vfio_iommu_spapr_tce: Remove unneeded iommu_group_get_iommudata
This removes iommu_group_get_iommudata() as the result is never used.
As this is a minor cleanup, no change in behavior is expected.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
-rw-r--r-- | drivers/vfio/vfio_iommu_spapr_tce.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c index 0582b72ef377..6419566a56d4 100644 --- a/drivers/vfio/vfio_iommu_spapr_tce.c +++ b/drivers/vfio/vfio_iommu_spapr_tce.c | |||
@@ -331,14 +331,12 @@ static void tce_iommu_free_table(struct iommu_table *tbl); | |||
331 | static void tce_iommu_release(void *iommu_data) | 331 | static void tce_iommu_release(void *iommu_data) |
332 | { | 332 | { |
333 | struct tce_container *container = iommu_data; | 333 | struct tce_container *container = iommu_data; |
334 | struct iommu_table_group *table_group; | ||
335 | struct tce_iommu_group *tcegrp; | 334 | struct tce_iommu_group *tcegrp; |
336 | long i; | 335 | long i; |
337 | 336 | ||
338 | while (tce_groups_attached(container)) { | 337 | while (tce_groups_attached(container)) { |
339 | tcegrp = list_first_entry(&container->group_list, | 338 | tcegrp = list_first_entry(&container->group_list, |
340 | struct tce_iommu_group, next); | 339 | struct tce_iommu_group, next); |
341 | table_group = iommu_group_get_iommudata(tcegrp->grp); | ||
342 | tce_iommu_detach_group(iommu_data, tcegrp->grp); | 340 | tce_iommu_detach_group(iommu_data, tcegrp->grp); |
343 | } | 341 | } |
344 | 342 | ||