Skip to content

Commit

Permalink
x86/amd-iommu: Use for_each_pci_dev()
Browse files Browse the repository at this point in the history
Use for_each_pci_dev() to simplify the code.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Kulikov Vasiliy authored and Joerg Roedel committed Jul 19, 2010
1 parent 1c5474a commit 6c54aab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2609,8 +2609,7 @@ int __init amd_iommu_init_passthrough(void)

pt_domain->mode |= PAGE_MODE_NONE;

while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {

for_each_pci_dev(dev) {
if (!check_device(&dev->dev))
continue;

Expand Down

0 comments on commit 6c54aab

Please sign in to comment.