summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-10-31 10:25:16 +0100
committerJoerg Roedel <joro@8bytes.org>2013-11-01 14:18:33 +0100
commit8b161f0ee911369232b5b5c18f84b5072f5bd09e (patch)
tree8175859cd40dd3a69104648a7c3bf7e3f9b46ace
parentiommu/vt-d: Fixed interaction of VFIO_IOMMU_MAP_DMA with IOMMU address limits (diff)
downloadlinux-8b161f0ee911369232b5b5c18f84b5072f5bd09e.tar.xz
linux-8b161f0ee911369232b5b5c18f84b5072f5bd09e.zip
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: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
-rw-r--r--drivers/iommu/dmar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 785675a56a10..da2d0d926e40 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -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);