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>
This commit is contained in:
Родитель
f9423606ad
Коммит
8b161f0ee9
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче