diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-10-31 05:25:16 -0400 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-11-01 09:18:33 -0400 |
commit | 8b161f0ee911369232b5b5c18f84b5072f5bd09e (patch) | |
tree | 8175859cd40dd3a69104648a7c3bf7e3f9b46ace /drivers/iommu | |
parent | f9423606ade08653dd8a43334f0a7fb45504c5cc (diff) |
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/dmar.c | 2 |
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) | |||
403 | 403 | ||
404 | dev = pci_physfn(dev); | 404 | dev = pci_physfn(dev); |
405 | 405 | ||
406 | list_for_each_entry(dmaru, &dmar_drhd_units, list) { | 406 | for_each_drhd_unit(dmaru) { |
407 | drhd = container_of(dmaru->hdr, | 407 | drhd = container_of(dmaru->hdr, |
408 | struct acpi_dmar_hardware_unit, | 408 | struct acpi_dmar_hardware_unit, |
409 | header); | 409 | header); |