Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/isa minor KNF



details:   https://anonhg.NetBSD.org/src/rev/2423d38b6db9
branches:  trunk
changeset: 535266:2423d38b6db9
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Aug 13 05:33:51 2002 +0000

description:
minor KNF

diffstat:

 sys/arch/i386/isa/joy_timer.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r f02ab3409c80 -r 2423d38b6db9 sys/arch/i386/isa/joy_timer.c
--- a/sys/arch/i386/isa/joy_timer.c     Tue Aug 13 05:29:25 2002 +0000
+++ b/sys/arch/i386/isa/joy_timer.c     Tue Aug 13 05:33:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: joy_timer.c,v 1.3 2002/08/13 02:42:54 thorpej Exp $    */
+/*     $NetBSD: joy_timer.c,v 1.4 2002/08/13 05:33:51 itojun Exp $     */
 
 /*
  * XXX This _really_ should be rewritten such that it doesn't
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: joy_timer.c,v 1.3 2002/08/13 02:42:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: joy_timer.c,v 1.4 2002/08/13 05:33:51 itojun Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -64,9 +64,9 @@
 {
        int low, high;
 
-       outb(IO_TIMER1+TIMER_MODE, TIMER_SEL0);
-       low = inb(IO_TIMER1+TIMER_CNTR0);
-       high = inb(IO_TIMER1+TIMER_CNTR0);
+       outb(IO_TIMER1 + TIMER_MODE, TIMER_SEL0);
+       low = inb(IO_TIMER1 + TIMER_CNTR0);
+       high = inb(IO_TIMER1 + TIMER_CNTR0);
 
        return ((high << 8) | low);
 }
@@ -74,5 +74,6 @@
 int
 joy_timer_freq()
 {
+
        return (TIMER_FREQ);
 }



Home | Main Index | Thread Index | Old Index