diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-04-14 00:38:27 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-04-14 00:38:27 +0000 |
commit | b61f357875b7937ce0237adf1b9c8159a986637e (patch) | |
tree | e31703d74c260c2942d31b5e45cdb9aa328e6aa1 | |
parent | f8b9cae814771de46eb66cc93da3952fd57f6941 (diff) |
avoid uninitialised var use
found by smatch, ok miod@
-rw-r--r-- | sys/dev/pci/qle.c | 4 |
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; |