From: jsg Date: Fri, 9 Feb 2024 12:45:10 +0000 (+0000) Subject: avoid uninitialised var use if qwx_core_fetch_bdf() errors X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=06bc238730aac28903aeab0d96b2427760b0110a;p=openbsd avoid uninitialised var use if qwx_core_fetch_bdf() errors ok stsp@ --- diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index f4e6c5da8b0..b523d6f2ea5 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.31 2024/02/09 09:59:01 stsp Exp $ */ +/* $OpenBSD: qwx.c,v 1.32 2024/02/09 12:45:10 jsg Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -8378,7 +8378,7 @@ qwx_qmi_load_bdf_qmi(struct qwx_softc *sc, int regdb) ret = qwx_core_fetch_bdf(sc, &data, &len, &boardfw, &boardfw_len, regdb ? ATH11K_REGDB_FILE : ATH11K_BOARD_API2_FILE); if (ret) - goto out; + return ret; if (regdb) bdf_type = ATH11K_QMI_BDF_TYPE_REGDB;