From 3e3a40248fef3c15293850f81c91232f3079b3af Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 13 Jun 2008 08:45:13 +0000 Subject: 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 --- sys/dev/pci/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3