From 32c7aa28d650443d91b49ffd9d0313439f3294ec Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 14 Apr 2024 00:38:26 +0000 Subject: [PATCH] avoid uninitialised var use found by smatch, ok miod@ --- sys/dev/pci/qle.c | 4 ++-- 1 file 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 @@ -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; -- 2.20.1