Add braces to avoid "ambiguous ‘else’" compiler warnings
[deliverable/linux.git] / drivers / iommu / dmar.c
index 6a86b5d1defa0513f6bc5cc8e88e125aecfaf629..7330a66e2b7ef4d9b88222df3153c07c8f83b1d7 100644 (file)
@@ -1871,10 +1871,11 @@ static int dmar_hp_remove_drhd(struct acpi_dmar_header *header, void *arg)
        /*
         * All PCI devices managed by this unit should have been destroyed.
         */
-       if (!dmaru->include_all && dmaru->devices && dmaru->devices_cnt)
+       if (!dmaru->include_all && dmaru->devices && dmaru->devices_cnt) {
                for_each_active_dev_scope(dmaru->devices,
                                          dmaru->devices_cnt, i, dev)
                        return -EBUSY;
+       }
 
        ret = dmar_ir_hotplug(dmaru, false);
        if (ret == 0)
This page took 0.027955 seconds and 5 git commands to generate.