Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb use __diagused
details: https://anonhg.NetBSD.org/src/rev/19f694b0b76d
branches: nick-nhusb
changeset: 334336:19f694b0b76d
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Dec 19 09:56:41 2015 +0000
description:
use __diagused
diffstat:
sys/dev/usb/motg.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 30c2099a70a4 -r 19f694b0b76d sys/dev/usb/motg.c
--- a/sys/dev/usb/motg.c Sat Dec 19 09:55:07 2015 +0000
+++ b/sys/dev/usb/motg.c Sat Dec 19 09:56:41 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: motg.c,v 1.12.2.23 2015/12/19 09:55:07 skrll Exp $ */
+/* $NetBSD: motg.c,v 1.12.2.24 2015/12/19 09:56:41 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2011, 2012, 2014 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
#include "opt_motg.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.12.2.23 2015/12/19 09:55:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: motg.c,v 1.12.2.24 2015/12/19 09:56:41 skrll Exp $");
#include <sys/param.h>
@@ -2126,9 +2126,7 @@
void
motg_device_data_abort(struct usbd_xfer *xfer)
{
-#ifdef DIAGNOSTIC
- struct motg_softc *sc = MOTG_XFER2SC(xfer);
-#endif
+ struct motg_softc __diagused *sc = MOTG_XFER2SC(xfer);
KASSERT(mutex_owned(&sc->sc_lock));
MOTGHIST_FUNC(); MOTGHIST_CALLED();
Home |
Main Index |
Thread Index |
Old Index