* [PATCH] iommu: remove unused variable 'ops'
@ 2021-03-27 9:02 xiangxia.m.yue
0 siblings, 0 replies; only message in thread
From: xiangxia.m.yue @ 2021-03-27 9:02 UTC (permalink / raw)
To: iommu
From: Tonghao Zhang <xiangxia.m.yue@gmail.com>
ops was not used in iommu_bus_init, remove it now.
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
---
drivers/iommu/iommu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index d0b0a15dba84..99462531a5ff 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -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;
--
2.14.1
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-27 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-27 9:02 [PATCH] iommu: remove unused variable 'ops' xiangxia.m.yue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox