Skip to content

Commit

Permalink
iommu/vt-d: Use for_each_drhd_unit() instead of list_for_each_entry()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yijing Wang authored and Joerg Roedel committed Nov 1, 2013
1 parent f942360 commit 8b161f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8b161f0

Please sign in to comment.