Skip to contentSkip to conversation

IOMMU/trivial: Use for_each_drhd_unit() instead of list_for_each_entry()

PATCH Applied Yijing Wang 2 participants 2 messages Oct 31, 2013 – Nov 1, 2013 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 IOMMU/trivial: 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.

---
 drivers/iommu/dmar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/iommu/dmar.c +1 -1
index 785675a..da2d0d9 100644
@@ -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);
Signature · 1 line
1.7.1