提交 6a4c24ec 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[PATCH] pci: remove warning messages

Remove these recently-added warnings.  They don't tell us anythng very
interesting and Kumar says "On an embedded PPC reference system I see this
message 6 times when I've got no cards in the PCI slots."
Acked-by: NKumar Gala <galak@kernel.crashing.org>
Acked-by: NGreg KH <greg@kroah.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 cb7468ef
...@@ -200,11 +200,8 @@ static struct pci_dev * pci_find_subsys(unsigned int vendor, ...@@ -200,11 +200,8 @@ static struct pci_dev * pci_find_subsys(unsigned int vendor,
* can cause some machines to crash. So here we detect and flag that * can cause some machines to crash. So here we detect and flag that
* situation and bail out early. * situation and bail out early.
*/ */
if (unlikely(list_empty(&pci_devices))) { if (unlikely(list_empty(&pci_devices)))
printk(KERN_INFO "pci_find_subsys() called while pci_devices "
"is still empty\n");
return NULL; return NULL;
}
down_read(&pci_bus_sem); down_read(&pci_bus_sem);
n = from ? from->global_list.next : pci_devices.next; n = from ? from->global_list.next : pci_devices.next;
...@@ -278,11 +275,8 @@ pci_get_subsys(unsigned int vendor, unsigned int device, ...@@ -278,11 +275,8 @@ pci_get_subsys(unsigned int vendor, unsigned int device,
* can cause some machines to crash. So here we detect and flag that * can cause some machines to crash. So here we detect and flag that
* situation and bail out early. * situation and bail out early.
*/ */
if (unlikely(list_empty(&pci_devices))) { if (unlikely(list_empty(&pci_devices)))
printk(KERN_NOTICE "pci_get_subsys() called while pci_devices "
"is still empty\n");
return NULL; return NULL;
}
down_read(&pci_bus_sem); down_read(&pci_bus_sem);
n = from ? from->global_list.next : pci_devices.next; n = from ? from->global_list.next : pci_devices.next;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册