Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa fix unused



details:   https://anonhg.NetBSD.org/src/rev/4edc563c23e9
branches:  trunk
changeset: 328004:4edc563c23e9
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 23 02:59:19 2014 +0000

description:
fix unused

diffstat:

 sys/dev/isa/radiotrack.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r bc5cfc8f95dd -r 4edc563c23e9 sys/dev/isa/radiotrack.c
--- a/sys/dev/isa/radiotrack.c  Sun Mar 23 02:57:20 2014 +0000
+++ b/sys/dev/isa/radiotrack.c  Sun Mar 23 02:59:19 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radiotrack.c,v 1.19 2012/10/27 17:18:25 chs Exp $ */
+/* $NetBSD: radiotrack.c,v 1.20 2014/03/23 02:59:19 christos Exp $ */
 /* $OpenBSD: radiotrack.c,v 1.1 2001/12/05 10:27:06 mickey Exp $ */
 /* $RuOBSD: radiotrack.c,v 1.3 2001/10/18 16:51:36 pva Exp $ */
 
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radiotrack.c,v 1.19 2012/10/27 17:18:25 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radiotrack.c,v 1.20 2014/03/23 02:59:19 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -334,10 +334,9 @@
 int
 rt_find(bus_space_tag_t iot, bus_space_handle_t ioh)
 {
+#ifdef notdef
        struct rt_softc sc;
-#if 0
        u_int i, scanres = 0;
-#endif
 
        sc.lm.iot = iot;
        sc.lm.ioh = ioh;
@@ -359,14 +358,14 @@
         * Scan whole FM range. If there is a card it'll
         * respond on some frequency.
         */
-       return 0;
-#if 0
        for (i = MIN_FM_FREQ; !scanres && i < MAX_FM_FREQ; i += 10) {
                rt_set_freq(&sc, i);
                scanres += rt_state(iot, ioh);
        }
 
        return scanres;
+#else
+       return 0;
 #endif
 }
 



Home | Main Index | Thread Index | Old Index