Module Name: src
Committed By: riz
Date: Fri Nov 22 00:01:09 UTC 2013
Modified Files:
src/sys/dev/ic: atw.c
Log Message:
Put back and properly mark a variable which is used iff ATW_DEBUG.
To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/sys/dev/ic/atw.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/atw.c
diff -u src/sys/dev/ic/atw.c:1.155 src/sys/dev/ic/atw.c:1.156
--- src/sys/dev/ic/atw.c:1.155 Thu Oct 17 21:24:24 2013
+++ src/sys/dev/ic/atw.c Fri Nov 22 00:01:09 2013
@@ -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 int atw_rf3000_read(struct atw_so
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 @@ static int atw_si4126_read(struct atw_so
#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 @@ void
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 @@ atw_reset(struct atw_softc *sc)
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));