Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic fix unused variable warning



details:   https://anonhg.NetBSD.org/src/rev/a341e75c1e36
branches:  trunk
changeset: 791389:a341e75c1e36
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Fri Nov 15 14:52:11 2013 +0000

description:
fix unused variable warning

diffstat:

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

diffs (34 lines):

diff -r c2e03d57503a -r a341e75c1e36 sys/dev/ic/rtwphy.c
--- a/sys/dev/ic/rtwphy.c       Fri Nov 15 14:39:53 2013 +0000
+++ b/sys/dev/ic/rtwphy.c       Fri Nov 15 14:52:11 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtwphy.c,v 1.15 2009/10/19 23:19:39 rmind Exp $ */
+/* $NetBSD: rtwphy.c,v 1.16 2013/11/15 14:52:11 nisimura Exp $ */
 /*-
  * Copyright (c) 2004, 2005 David Young.  All rights reserved.
  *
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtwphy.c,v 1.15 2009/10/19 23:19:39 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtwphy.c,v 1.16 2013/11/15 14:52:11 nisimura Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -127,6 +127,7 @@
 static void
 verify_syna(u_int freq, uint32_t val)
 {
+#ifdef DIAGNOSTIC
        uint32_t expected_val = ~val;
 
        switch (freq) {
@@ -174,6 +175,7 @@
                break;
        }
        KASSERT(val == expected_val);
+#endif
 }
 
 /* freq is in MHz */



Home | Main Index | Thread Index | Old Index