Skip to contentSkip to conversation

iommu/arm-smmu: fix iommu_present() test in init

PATCH In review Dan Carpenter 1 participant 1 message Aug 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 iommu/arm-smmu: fix iommu_present() test in init

The extra semi-colon on the end breaks the test.

---
I can't compile this or test it. The original code didn't work as intended but it would still be good to test this because it changes the code a lot.

drivers/iommu/arm-smmu.c +2 -2
index 7243af3..913bd15 100644
@@ -1967,10 +1967,10 @@ static int __init arm_smmu_init(void)
 		return ret;
 
 	/* Oh, for a proper bus abstraction */
-	if (!iommu_present(&platform_bus_type));
+	if (!iommu_present(&platform_bus_type))
 		bus_set_iommu(&platform_bus_type, &arm_smmu_ops);
 
-	if (!iommu_present(&amba_bustype));
+	if (!iommu_present(&amba_bustype))
 		bus_set_iommu(&amba_bustype, &arm_smmu_ops);
 
 	return 0;