Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb xhci.c: avoid unused variable in non-DIAGNOSTIC ...



details:   https://anonhg.NetBSD.org/src/rev/232be56eb79c
branches:  trunk
changeset: 829651:232be56eb79c
user:      prlw1 <prlw1%NetBSD.org@localhost>
date:      Wed Feb 07 15:55:58 2018 +0000

description:
xhci.c: avoid unused variable in non-DIAGNOSTIC build

diffstat:

 sys/dev/usb/xhci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 130f07b09814 -r 232be56eb79c sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Wed Feb 07 15:51:35 2018 +0000
+++ b/sys/dev/usb/xhci.c        Wed Feb 07 15:55:58 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.85 2018/02/01 09:55:37 msaitoh Exp $        */
+/*     $NetBSD: xhci.c,v 1.86 2018/02/07 15:55:58 prlw1 Exp $  */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.85 2018/02/01 09:55:37 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.86 2018/02/07 15:55:58 prlw1 Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -3658,7 +3658,7 @@
 static void
 xhci_root_intr_abort(struct usbd_xfer *xfer)
 {
-       struct xhci_softc * const sc = XHCI_XFER2SC(xfer);
+       struct xhci_softc * const sc __diagused = XHCI_XFER2SC(xfer);
 
        XHCIHIST_FUNC(); XHCIHIST_CALLED();
 



Home | Main Index | Thread Index | Old Index