projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f942360
)
iommu/vt-d: Use for_each_drhd_unit() instead of list_for_each_entry()
author
Yijing Wang
<wangyijing@huawei.com>
Thu, 31 Oct 2013 09:25:16 +0000
(17:25 +0800)
committer
Joerg Roedel
<joro@8bytes.org>
Fri, 1 Nov 2013 13:18:33 +0000
(14:18 +0100)
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>
drivers/iommu/dmar.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/dmar.c
b/drivers/iommu/dmar.c
index 785675a56a10f8117b052ff06bf4e9b462e720b5..da2d0d926e40462198096c5e7a4c9f8efc936c79 100644
(file)
--- 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);