summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-06-13 08:45:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-06-13 08:45:13 +0000
commit3e3a40248fef3c15293850f81c91232f3079b3af (patch)
tree9dcd12e6399c8149f84289af1b2b4e1461e6b0cd /sys/dev
parente4dbef1bc11976efe92bf1ec3642bf2076c6c0ad (diff)
Initialize the return value in pci_probe_device() function, so that we do
not randomly skip probing for devices after a missing device. ok kettenis
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 16c7591f448..72742c680f6 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.56 2008/02/27 21:11:11 kettenis Exp $ */
+/* $OpenBSD: pci.c,v 1.57 2008/06/13 08:45:12 deraadt Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -253,7 +253,7 @@ pci_probe_device(struct pci_softc *sc, pcitag_t tag,
struct pci_dev *pd;
struct device *dev;
pcireg_t id, csr, class, intr, bhlcr;
- int ret, pin, bus, device, function;
+ int ret = 0, pin, bus, device, function;
pci_decompose_tag(pc, tag, &bus, &device, &function);