Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
To:
OpenBSD tech <tech@openbsd.org>
Cc:
patrick@openbsd.org, kevlo@openbsd.org
Date:
Sat, 29 Mar 2025 23:05:55 +0100

Download raw body.

Thread
  • Kirill A. Korinsky:

    (no subject)

    • Klemens Nanni:

    • Kevin Lo:

Folks,

without this diff qwz doesn't build anymore with error:

/usr/src/sys/dev/ic/qwz.c:6641:9: error: unused variable 'len' [-Werror,-Wunused-variable]
        size_t len = 0, boardfw_len;
               ^
1 error generated.

Ok?

Index: sys/dev/ic/qwz.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/qwz.c,v
retrieving revision 1.19
diff -u -p -r1.19 qwz.c
--- sys/dev/ic/qwz.c	28 Mar 2025 07:23:48 -0000	1.19
+++ sys/dev/ic/qwz.c	29 Mar 2025 22:04:55 -0000
@@ -6638,7 +6638,7 @@ int
 qwz_qmi_load_bdf_qmi(struct qwz_softc *sc, enum ath12k_qmi_bdf_type type)
 {
 	const u_char *boardfw;
-	size_t len = 0, boardfw_len;
+	size_t boardfw_len;
 	uint32_t fw_size;
 	int ret = 0;
 


-- 
wbr, Kirill