Module Name: src Committed By: nisimura Date: Fri Nov 15 14:52:11 UTC 2013
Modified Files: src/sys/dev/ic: rtwphy.c Log Message: fix unused variable warning To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/ic/rtwphy.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/rtwphy.c diff -u src/sys/dev/ic/rtwphy.c:1.15 src/sys/dev/ic/rtwphy.c:1.16 --- src/sys/dev/ic/rtwphy.c:1.15 Mon Oct 19 23:19:39 2009 +++ src/sys/dev/ic/rtwphy.c Fri Nov 15 14:52:11 2013 @@ -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 @@ rtw_sa2400_txpower(struct rtw_rf *rf, ui static void verify_syna(u_int freq, uint32_t val) { +#ifdef DIAGNOSTIC uint32_t expected_val = ~val; switch (freq) { @@ -174,6 +175,7 @@ verify_syna(u_int freq, uint32_t val) break; } KASSERT(val == expected_val); +#endif } /* freq is in MHz */