提交 db210f82 编写于 作者: T Thiago Farina 提交者: David S. Miller

ide/ide-scan-pci.c: Use for_each_pci_dev().

Use for_each_pci_dev() to simplify the code.
Signed-off-by: NThiago Farina <tfransosi@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 245e3718
......@@ -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);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册