Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb shut up an unused variable warning
details: https://anonhg.NetBSD.org/src/rev/35616e82b8b6
branches: trunk
changeset: 359832:35616e82b8b6
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jan 26 16:49:06 2022 +0000
description:
shut up an unused variable warning
apparently clang gets confused by bus_dmatag_subregion() being EOPNOTSUPP
on powerpc
diffstat:
sys/dev/usb/ehci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0c123597e72f -r 35616e82b8b6 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Wed Jan 26 12:41:26 2022 +0000
+++ b/sys/dev/usb/ehci.c Wed Jan 26 16:49:06 2022 +0000
@@ -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 @@
* - 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);
Home |
Main Index |
Thread Index |
Old Index