Skip to content

Commit

Permalink
ide/ide-scan-pci.c: 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: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thiago Farina authored and David S. Miller committed May 16, 2011
1 parent 245e371 commit db210f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-scan-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static int __init ide_scan_pcibus(void)
struct list_head *l, *n;

pre_init = 0;
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)))
for_each_pci_dev(dev)
ide_scan_pcidev(dev);

/*
Expand Down

0 comments on commit db210f8

Please sign in to comment.