From: jsg Date: Sun, 14 Apr 2024 00:38:26 +0000 (+0000) Subject: avoid uninitialised var use X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=32c7aa28d650443d91b49ffd9d0313439f3294ec;p=openbsd avoid uninitialised var use found by smatch, ok miod@ --- 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 @@ -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;