Commit 8b161f0e authored by Yijing Wang's avatar Yijing Wang Committed by Joerg Roedel

iommu/vt-d: Use for_each_drhd_unit() instead of list_for_each_entry()

Use for_each_drhd_unit() instead of list_for_each_entry for
better readability.
Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent f9423606
...@@ -403,7 +403,7 @@ dmar_find_matched_drhd_unit(struct pci_dev *dev) ...@@ -403,7 +403,7 @@ dmar_find_matched_drhd_unit(struct pci_dev *dev)
dev = pci_physfn(dev); dev = pci_physfn(dev);
list_for_each_entry(dmaru, &dmar_drhd_units, list) { for_each_drhd_unit(dmaru) {
drhd = container_of(dmaru->hdr, drhd = container_of(dmaru->hdr,
struct acpi_dmar_hardware_unit, struct acpi_dmar_hardware_unit,
header); header);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment