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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 245e371 commit db210f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)