summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-04-14 00:38:27 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-04-14 00:38:27 +0000
commitb61f357875b7937ce0237adf1b9c8159a986637e (patch)
treee31703d74c260c2942d31b5e45cdb9aa328e6aa1 /sys
parentf8b9cae814771de46eb66cc93da3952fd57f6941 (diff)
avoid uninitialised var use
found by smatch, ok miod@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/qle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c
index 88f874b1a0a..ced20f8948d 100644
--- a/sys/dev/pci/qle.c
+++ b/sys/dev/pci/qle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qle.c,v 1.63 2022/04/16 19:19:59 naddy Exp $ */
+/* $OpenBSD: qle.c,v 1.64 2024/04/14 00:38:26 jsg Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
@@ -359,7 +359,7 @@ qle_attach(struct device *parent, struct device *self, void *aux)
pcireg_t bars[] = { QLE_PCI_MEM_BAR, QLE_PCI_IO_BAR };
pcireg_t memtype;
- int r, i, rv, loop_up;
+ int r, i, rv, loop_up = 0;
sc->sc_pc = pa->pa_pc;
sc->sc_tag = pa->pa_tag;