Skip to content

Commit db210f8

Browse files
tfarinadavem330
authored andcommitted
ide/ide-scan-pci.c: Use for_each_pci_dev().
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>
1 parent 245e371 commit db210f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/ide/ide-scan-pci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static int __init ide_scan_pcibus(void)
8888
struct list_head *l, *n;
8989

9090
pre_init = 0;
91-
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)))
91+
for_each_pci_dev(dev)
9292
ide_scan_pcidev(dev);
9393

9494
/*

0 commit comments

Comments
 (0)