Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46028
b: refs/heads/master
c: 6a4c24e
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 2, 2007
1 parent a1776cb commit 43c6127
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb7468ef4cce8f240604b80b82ac157fa9930e94
refs/heads/master: 6a4c24ec52128c1f57b7d2d24cf4dd13fc23f474
10 changes: 2 additions & 8 deletions trunk/drivers/pci/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* situation and bail out early.
*/
if (unlikely(list_empty(&pci_devices))) {
printk(KERN_INFO "pci_find_subsys() called while pci_devices "
"is still empty\n");
if (unlikely(list_empty(&pci_devices)))
return NULL;
}
down_read(&pci_bus_sem);
n = from ? from->global_list.next : pci_devices.next;

Expand Down Expand Up @@ -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
* situation and bail out early.
*/
if (unlikely(list_empty(&pci_devices))) {
printk(KERN_NOTICE "pci_get_subsys() called while pci_devices "
"is still empty\n");
if (unlikely(list_empty(&pci_devices)))
return NULL;
}
down_read(&pci_bus_sem);
n = from ? from->global_list.next : pci_devices.next;

Expand Down

0 comments on commit 43c6127

Please sign in to comment.