Skip to contentSkip to conversation

iommu: remove unused variable 'ops'

PATCH New [email protected] 1 participant 1 message Mar 27, 2021 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu: remove unused variable 'ops'

From: Tonghao Zhang <[email protected]>

ops was not used in iommu_bus_init, remove it now.

---
 drivers/iommu/iommu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iommu/iommu.c +2 -2
index d0b0a15dba84..99462531a5ff 100644
@@ -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