Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Sprinkle __diagused



details:   https://anonhg.NetBSD.org/src/rev/47656c8aebe0
branches:  trunk
changeset: 365261:47656c8aebe0
user:      prlw1 <prlw1%NetBSD.org@localhost>
date:      Thu Aug 09 21:16:43 2018 +0000

description:
Sprinkle __diagused

diffstat:

 sys/dev/usb/ohci.c |  6 +++---
 sys/dev/usb/uhci.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 8b6f560a3ef6 -r 47656c8aebe0 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Thu Aug 09 20:30:26 2018 +0000
+++ b/sys/dev/usb/ohci.c        Thu Aug 09 21:16:43 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.282 2018/08/09 06:26:47 mrg Exp $   */
+/*     $NetBSD: ohci.c,v 1.283 2018/08/09 21:16:43 prlw1 Exp $ */
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.282 2018/08/09 06:26:47 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.283 2018/08/09 21:16:43 prlw1 Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1389,7 +1389,7 @@
        int len, cc;
        int i, j, actlen, iframes, uedir;
        ohci_physaddr_t done;
-       bool polling = sc->sc_bus.ub_usepolling;
+       bool polling __diagused= sc->sc_bus.ub_usepolling;
 
        KASSERT(polling || mutex_owned(&sc->sc_lock));
 
diff -r 8b6f560a3ef6 -r 47656c8aebe0 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Thu Aug 09 20:30:26 2018 +0000
+++ b/sys/dev/usb/uhci.c        Thu Aug 09 21:16:43 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.281 2018/08/09 06:26:47 mrg Exp $   */
+/*     $NetBSD: uhci.c,v 1.282 2018/08/09 21:16:43 prlw1 Exp $ */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.281 2018/08/09 06:26:47 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.282 2018/08/09 21:16:43 prlw1 Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1555,7 +1555,7 @@
        struct uhci_pipe *upipe = UHCI_PIPE2UPIPE(xfer->ux_pipe);
        uhci_soft_td_t *std;
        uint32_t status = 0, nstatus;
-       bool polling = sc->sc_bus.ub_usepolling;
+       bool polling __diagused = sc->sc_bus.ub_usepolling;
        int actlen;
 
        KASSERT(polling || mutex_owned(&sc->sc_lock));



Home | Main Index | Thread Index | Old Index