Module Name: src
Committed By: macallan
Date: Wed Jan 26 16:49:06 UTC 2022
Modified Files:
src/sys/dev/usb: ehci.c
Log Message:
shut up an unused variable warning
apparently clang gets confused by bus_dmatag_subregion() being EOPNOTSUPP
on powerpc
To generate a diff of this commit:
cvs rdiff -u -r1.300 -r1.301 src/sys/dev/usb/ehci.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/usb/ehci.c
diff -u src/sys/dev/usb/ehci.c:1.300 src/sys/dev/usb/ehci.c:1.301
--- src/sys/dev/usb/ehci.c:1.300 Thu Dec 30 04:19:23 2021
+++ src/sys/dev/usb/ehci.c Wed Jan 26 16:49:06 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.300 2021/12/30 04:19:23 mrg Exp $ */
+/* $NetBSD: ehci.c,v 1.301 2022/01/26 16:49:06 macallan Exp $ */
/*
* Copyright (c) 2004-2012,2016,2020 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.300 2021/12/30 04:19:23 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.301 2022/01/26 16:49:06 macallan Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -498,7 +498,7 @@ ehci_init(ehci_softc_t *sc)
* - the driver doesn't currently set EHCI_CTRLDSSEGMENT to anything
* other than 0.
*/
- bus_dma_tag_t ntag;
+ bus_dma_tag_t ntag = NULL;
sc->sc_dmatag = sc->sc_bus.ub_dmatag;
err = bus_dmatag_subregion(sc->sc_bus.ub_dmatag, 0, UINT32_MAX,
&ntag, 0);