Module Name: src
Committed By: christos
Date: Mon Jan 20 17:16:34 UTC 2025
Modified Files:
src/sys/dev/ic: bwi.c
Log Message:
fix uninitialized
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/ic/bwi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/bwi.c
diff -u src/sys/dev/ic/bwi.c:1.40 src/sys/dev/ic/bwi.c:1.41
--- src/sys/dev/ic/bwi.c:1.40 Sat Jan 18 19:29:28 2025
+++ src/sys/dev/ic/bwi.c Mon Jan 20 12:16:33 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: bwi.c,v 1.40 2025/01/19 00:29:28 jmcneill Exp $ */
+/* $NetBSD: bwi.c,v 1.41 2025/01/20 17:16:33 christos Exp $ */
/* $OpenBSD: bwi.c,v 1.74 2008/02/25 21:13:30 mglocker Exp $ */
/*
@@ -48,7 +48,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.40 2025/01/19 00:29:28 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.41 2025/01/20 17:16:33 christos Exp $");
#include <sys/param.h>
#include <sys/callout.h>
@@ -8708,7 +8708,7 @@ bwi_newbuf(struct bwi_softc *sc, int buf
bus_dmamap_t map;
bus_addr_t paddr;
struct mbuf *m;
- int error;
+ int error = 0;
KASSERT(buf_idx < BWI_RX_NDESC);