Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm26/ioc Ensure rtcattach generates a newline even...



details:   https://anonhg.NetBSD.org/src/rev/02256b47c323
branches:  trunk
changeset: 493984:02256b47c323
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Wed Jun 28 15:25:03 2000 +0000

description:
Ensure rtcattach generates a newline even if the RTC is broken

diffstat:

 sys/arch/arm26/ioc/rtc.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r d6e2b814ced3 -r 02256b47c323 sys/arch/arm26/ioc/rtc.c
--- a/sys/arch/arm26/ioc/rtc.c  Wed Jun 28 15:18:16 2000 +0000
+++ b/sys/arch/arm26/ioc/rtc.c  Wed Jun 28 15:25:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtc.c,v 1.1 2000/05/09 21:56:02 bjh21 Exp $    */
+/*     $NetBSD: rtc.c,v 1.2 2000/06/28 15:25:03 bjh21 Exp $    */
 
 /*
  * Copyright (c) 2000 Ben Harris
@@ -46,7 +46,7 @@
 
 #include <sys/param.h>
 
-__RCSID("$NetBSD: rtc.c,v 1.1 2000/05/09 21:56:02 bjh21 Exp $");
+__RCSID("$NetBSD: rtc.c,v 1.2 2000/06/28 15:25:03 bjh21 Exp $");
 
 #include <sys/systm.h>
 #include <sys/kernel.h>
@@ -128,11 +128,11 @@
 
                if (iic_control(self->dv_parent, sc->sc_addr | IIC_WRITE,
                                buff, 1))
-                       return;
+                       goto out;
 
                if (iic_control(self->dv_parent, sc->sc_addr | IIC_READ,
                                buff, 1))
-                       return;
+                       goto out;
 
                switch (buff[0] & PCF8583_CSR_FN_MASK) {
                case PCF8583_CSR_FN_32768HZ:
@@ -156,6 +156,7 @@
                sc->sc_flags &= ~RTC_BROKEN;
        }
 
+ out:
        printf("\n");
 }
 



Home | Main Index | Thread Index | Old Index