Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Put back and properly mark a variable which is us...



details:   https://anonhg.NetBSD.org/src/rev/cd8527267927
branches:  trunk
changeset: 791513:cd8527267927
user:      riz <riz%NetBSD.org@localhost>
date:      Fri Nov 22 00:01:09 2013 +0000

description:
Put back and properly mark a variable which is used iff ATW_DEBUG.

diffstat:

 sys/dev/ic/atw.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r 1f788dd549a6 -r cd8527267927 sys/dev/ic/atw.c
--- a/sys/dev/ic/atw.c  Thu Nov 21 23:42:09 2013 +0000
+++ b/sys/dev/ic/atw.c  Fri Nov 22 00:01:09 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atw.c,v 1.155 2013/10/17 21:24:24 christos Exp $  */
+/*     $NetBSD: atw.c,v 1.156 2013/11/22 00:01:09 riz Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.155 2013/10/17 21:24:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.156 2013/11/22 00:01:09 riz Exp $");
 
 
 #include <sys/param.h>
@@ -167,7 +167,7 @@
 static void    atw_si4126_print(struct atw_softc *);
 static int     atw_si4126_read(struct atw_softc *, u_int, u_int *);
 #      endif /* ATW_SYNDEBUG */
-
+#define __atwdebugused /* empty */
 #else
 #define ATW_DPRINTF(x)
 #define ATW_DPRINTF2(x)
@@ -175,6 +175,7 @@
 #define        DPRINTF(sc, x)  /* nothing */
 #define        DPRINTF2(sc, x) /* nothing */
 #define        DPRINTF3(sc, x) /* nothing */
+#define __atwdebugused __unused
 #endif
 
 /* ifnet methods */
@@ -902,6 +903,7 @@
 atw_reset(struct atw_softc *sc)
 {
        int i;
+       uint32_t lpc __atwdebugused;
 
        ATW_WRITE(sc, ATW_NAR, 0x0);
        DELAY(atw_nar_delay);
@@ -948,7 +950,7 @@
 
        DELAY(atw_magic_delay4);
 
-       (void)ATW_READ(sc, ATW_LPC);
+       lpc = ATW_READ(sc, ATW_LPC);
 
        DPRINTF(sc, ("%s: ATW_LPC %#08x\n", __func__, lpc));
 



Home | Main Index | Thread Index | Old Index