iommu/vt-d: Use for_each_drhd_unit() instead of list_for_each_entry()
authorYijing Wang <wangyijing@huawei.com>
Thu, 31 Oct 2013 09:25:16 +0000 (17:25 +0800)
committerJoerg Roedel <joro@8bytes.org>
Fri, 1 Nov 2013 13:18:33 +0000 (14:18 +0100)
Use for_each_drhd_unit() instead of list_for_each_entry for
better readability.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/dmar.c

index 785675a56a10f8117b052ff06bf4e9b462e720b5..da2d0d926e40462198096c5e7a4c9f8efc936c79 100644 (file)
@@ -403,7 +403,7 @@ dmar_find_matched_drhd_unit(struct pci_dev *dev)
 
        dev = pci_physfn(dev);
 
-       list_for_each_entry(dmaru, &dmar_drhd_units, list) {
+       for_each_drhd_unit(dmaru) {
                drhd = container_of(dmaru->hdr,
                                    struct acpi_dmar_hardware_unit,
                                    header);
This page took 0.025826 seconds and 5 git commands to generate.