From: Alexey Kardashevskiy Date: Fri, 8 Apr 2016 04:54:41 +0000 (+1000) Subject: vfio_iommu_spapr_tce: Remove unneeded iommu_group_get_iommudata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ed4aba1265f3c7532bf4ae1f25a277568b86871;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: David Gibson Signed-off-by: Alex Williamson --- 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); static void tce_iommu_release(void *iommu_data) { struct tce_container *container = iommu_data; - struct iommu_table_group *table_group; struct tce_iommu_group *tcegrp; long i; while (tce_groups_attached(container)) { tcegrp = list_first_entry(&container->group_list, struct tce_iommu_group, next); - table_group = iommu_group_get_iommudata(tcegrp->grp); tce_iommu_detach_group(iommu_data, tcegrp->grp); }