iommu: remove unused variable 'ops'
PATCH 1/1 iommu: remove unused variable 'ops'
From: Tonghao Zhang <[email protected]>
ops was not used in iommu_bus_init, remove it now.
Signed-off-by Tonghao Zhang <[email protected]>
--- drivers/iommu/iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iommu/iommu.c +2 -2
@@ -1799,7 +1799,7 @@ int bus_iommu_probe(struct bus_type *bus)return ret; } -static int iommu_bus_init (struct bus_type *bus,const struct iommu_ops *ops) +static int iommu_bus_init (struct bus_type *bus) {struct notifier_block *nb;int err;
@@ -1860,7 +1860,7 @@ int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops) bus->iommu_ops = ops;/* Do IOMMU specific setup for this bus-type */ - err =iommu_bus_init (bus, ops); + err =iommu_bus_init (bus);if (err) bus->iommu_ops =NULL ;
Signature · 6 lines
2.14.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu