Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/luna68k/dev Misc KNF.



details:   https://anonhg.NetBSD.org/src/rev/6f3812a55c7f
branches:  trunk
changeset: 962144:6f3812a55c7f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jun 30 02:11:56 2019 +0000

description:
Misc KNF.

diffstat:

 sys/arch/luna68k/dev/if_le.c  |  10 +++++-----
 sys/arch/luna68k/dev/lcd.c    |  13 +++++++------
 sys/arch/luna68k/dev/lunafb.c |   6 +++---
 sys/arch/luna68k/dev/siotty.c |   6 +++---
 4 files changed, 18 insertions(+), 17 deletions(-)

diffs (134 lines):

diff -r 4aff6004630a -r 6f3812a55c7f sys/arch/luna68k/dev/if_le.c
--- a/sys/arch/luna68k/dev/if_le.c      Sat Jun 29 21:35:09 2019 +0000
+++ b/sys/arch/luna68k/dev/if_le.c      Sun Jun 30 02:11:56 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_le.c,v 1.7 2013/09/23 17:27:09 tsutsui Exp $ */
+/* $NetBSD: if_le.c,v 1.8 2019/06/30 02:11:56 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -73,7 +73,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: if_le.c,v 1.7 2013/09/23 17:27:09 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_le.c,v 1.8 2019/06/30 02:11:56 tsutsui Exp $");
 
 #include "opt_inet.h"
 
@@ -152,7 +152,7 @@
 
        ler1->ler1_rap = port;
        val = ler1->ler1_rdp;
-       return (val);
+       return val;
 }
 
 static int
@@ -161,9 +161,9 @@
        struct mainbus_attach_args *ma = aux;
 
        if (strcmp(ma->ma_name, le_cd.cd_name))
-               return (0);
+               return 0;
 
-       return (1);
+       return 1;
 }
 
 void
diff -r 4aff6004630a -r 6f3812a55c7f sys/arch/luna68k/dev/lcd.c
--- a/sys/arch/luna68k/dev/lcd.c        Sat Jun 29 21:35:09 2019 +0000
+++ b/sys/arch/luna68k/dev/lcd.c        Sun Jun 30 02:11:56 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lcd.c,v 1.9 2018/03/08 03:12:02 mrg Exp $ */
+/* $NetBSD: lcd.c,v 1.10 2019/06/30 02:11:56 tsutsui Exp $ */
 /* $OpenBSD: lcd.c,v 1.7 2015/02/10 22:42:35 miod Exp $ */
 
 /*-
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>         /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: lcd.c,v 1.9 2018/03/08 03:12:02 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lcd.c,v 1.10 2019/06/30 02:11:56 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -71,10 +71,10 @@
 #define LCD_MAXBUFLEN  80
 
 struct pio {
-       volatile u_int8_t portA;
-       volatile u_int8_t portB;
-       volatile u_int8_t portC;
-       volatile u_int8_t cntrl;
+       volatile uint8_t portA;
+       volatile uint8_t portB;
+       volatile uint8_t portC;
+       volatile uint8_t cntrl;
 };
 
 /* Autoconf stuff */
@@ -344,6 +344,7 @@
 void
 greeting(void)
 {
+
        lcdctrl(LCD_INIT);
        lcdctrl(LCD_ENTRY);
        lcdctrl(LCD_ON);
diff -r 4aff6004630a -r 6f3812a55c7f sys/arch/luna68k/dev/lunafb.c
--- a/sys/arch/luna68k/dev/lunafb.c     Sat Jun 29 21:35:09 2019 +0000
+++ b/sys/arch/luna68k/dev/lunafb.c     Sun Jun 30 02:11:56 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lunafb.c,v 1.37 2018/01/24 05:35:58 riastradh Exp $ */
+/* $NetBSD: lunafb.c,v 1.38 2019/06/30 02:11:56 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.37 2018/01/24 05:35:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.38 2019/06/30 02:11:56 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -346,7 +346,7 @@
 
        cmsize = sc->sc_dc->dc_cmsize;
        if (index >= cmsize || count > cmsize - index)
-               return (EINVAL);
+               return EINVAL;
 
        error = copyin(p->red, &cmap.r[index], count);
        if (error)
diff -r 4aff6004630a -r 6f3812a55c7f sys/arch/luna68k/dev/siotty.c
--- a/sys/arch/luna68k/dev/siotty.c     Sat Jun 29 21:35:09 2019 +0000
+++ b/sys/arch/luna68k/dev/siotty.c     Sun Jun 30 02:11:56 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siotty.c,v 1.44 2015/08/21 10:48:06 christos Exp $ */
+/* $NetBSD: siotty.c,v 1.45 2019/06/30 02:11:56 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.44 2015/08/21 10:48:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siotty.c,v 1.45 2019/06/30 02:11:56 tsutsui Exp $");
 
 #include "opt_ddb.h"
 
@@ -602,7 +602,7 @@
 
        sc = device_lookup_private(&siotty_cd, minor(dev));
        tp = sc->sc_tty;
-       return ((*tp->t_linesw->l_poll)(tp, events, l));
+       return (*tp->t_linesw->l_poll)(tp, events, l);
 }
 
 int



Home | Main Index | Thread Index | Old Index