vfio_iommu_spapr_tce: Remove unneeded iommu_group_get_iommudata
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 8 Apr 2016 04:54:41 +0000 (14:54 +1000)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 Apr 2016 17:12:41 +0000 (11:12 -0600)
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>
drivers/vfio/vfio_iommu_spapr_tce.c

index 0582b72ef3772cf1257cc330dcf5e32246fe72bb..6419566a56d4e4d4042c5c95e5d25c34b3c215c6 100644 (file)
@@ -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);
        }