Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);