Module Name:src
Committed By: he
Date: Sun Jun 8 10:40:52 UTC 2014
Modified Files:
src/sys/arch/mipsco/obio: zs.c
Log Message:
Move the rest of real_bps handling in under #if 0, so
that we don't get set-but-not-used warnings from the compiler.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/mipsco/obio/zs.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/arch/mipsco/obio/zs.c
diff -u src/sys/arch/mipsco/obio/zs.c:1.24 src/sys/arch/mipsco/obio/zs.c:1.25
--- src/sys/arch/mipsco/obio/zs.c:1.24 Fri Jun 13 12:25:37 2008
+++ src/sys/arch/mipsco/obio/zs.c Sun Jun 8 10:40:52 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.24 2008/06/13 12:25:37 cegger Exp $ */
+/* $NetBSD: zs.c,v 1.25 2014/06/08 10:40:52 he Exp $ */
/*-
* Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: zs.c,v 1.24 2008/06/13 12:25:37 cegger Exp $);
+__KERNEL_RCSID(0, $NetBSD: zs.c,v 1.25 2014/06/08 10:40:52 he Exp $);
#include opt_ddb.h
#include opt_kgdb.h
@@ -393,7 +393,10 @@ zs_get_speed(struct zs_chanstate *cs)
int
zs_set_speed(struct zs_chanstate *cs, int bps)
{
- int tconst, real_bps;
+ int tconst;
+#if 0
+ int real_bps;
+#endif
#if 0
while (!(zs_read_csr(cs) ZSRR0_TX_READY))
@@ -413,11 +416,11 @@ zs_set_speed(struct zs_chanstate *cs, in
if (tconst 0)
return (EINVAL);
+#if 0
/* Convert back to make sure we can do it. */
real_bps = TCONST_TO_BPS(cs-cs_brg_clk, tconst);
/* XXX - Allow some tolerance here? */
-#if 0
if (real_bps != bps)
return (EINVAL);
#endif