mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ide/ide-scan-pci.c: Use for_each_pci_dev().
@ 2011-05-01 22:10 Thiago Farina
  2011-05-10 22:57 ` Thiago Farina
  2011-05-16 21:25 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Thiago Farina @ 2011-05-01 22:10 UTC (permalink / raw)
  To: linux-kernel, David S. Miller; +Cc: linux-ide

Use for_each_pci_dev() to simplify the code.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
 drivers/ide/ide-scan-pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ide/ide-scan-pci.c b/drivers/ide/ide-scan-pci.c
index 0e79eff..c3da53e 100644
--- a/drivers/ide/ide-scan-pci.c
+++ b/drivers/ide/ide-scan-pci.c
@@ -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);
 
 	/*
-- 
1.7.5.rc2.5.g60e19


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-16 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-01 22:10 [PATCH] ide/ide-scan-pci.c: Use for_each_pci_dev() Thiago Farina
2011-05-10 22:57 ` Thiago Farina
2011-05-16 21:25 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®