Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mipsco/obio Move the rest of real_bps handling in u...



details:   https://anonhg.NetBSD.org/src/rev/a1da020c16bf
branches:  trunk
changeset: 329774:a1da020c16bf
user:      he <he%NetBSD.org@localhost>
date:      Sun Jun 08 10:40:52 2014 +0000

description:
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.

diffstat:

 sys/arch/mipsco/obio/zs.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r af5430702465 -r a1da020c16bf sys/arch/mipsco/obio/zs.c
--- a/sys/arch/mipsco/obio/zs.c Sun Jun 08 09:53:43 2014 +0000
+++ b/sys/arch/mipsco/obio/zs.c Sun Jun 08 10:40:52 2014 +0000
@@ -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 @@
 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 @@
        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



Home | Main Index | Thread Index | Old Index