Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/next68k/next68k Misc KNF and cosmetics.



details:   https://anonhg.NetBSD.org/src/rev/15bdc25e4167
branches:  trunk
changeset: 373350:15bdc25e4167
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Feb 03 23:22:34 2023 +0000

description:
Misc KNF and cosmetics.

diffstat:

 sys/arch/next68k/next68k/mainbus.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r 044785adc361 -r 15bdc25e4167 sys/arch/next68k/next68k/mainbus.c
--- a/sys/arch/next68k/next68k/mainbus.c        Fri Feb 03 23:21:17 2023 +0000
+++ b/sys/arch/next68k/next68k/mainbus.c        Fri Feb 03 23:22:34 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mainbus.c,v 1.13 2021/08/07 16:19:01 thorpej Exp $     */
+/*     $NetBSD: mainbus.c,v 1.14 2023/02/03 23:22:34 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.13 2021/08/07 16:19:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.14 2023/02/03 23:22:34 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -73,9 +73,10 @@
 static int
 mainbus_match(device_t parent, cfdata_t cf, void *aux)
 {
+
        /* Allow only one instance. */
        if (mainbus_attached)
-               return (0);
+               return 0;
 
        return 1;
 }
@@ -83,7 +84,7 @@
 static void
 mainbus_attach(device_t parent, device_t self, void *aux)
 {
-       struct mainbus_attach_args      mba;
+       struct mainbus_attach_args mba;
 
        printf("\n");
 
@@ -97,9 +98,9 @@
 }
 
 static int
-mainbus_search(device_t parent, cfdata_t cf,
-              const int *ldesc, void *aux)
+mainbus_search(device_t parent, cfdata_t cf, const int *ldesc, void *aux)
 {
+
        if (config_probe(parent, cf, aux))
                config_attach(parent, cf, aux, NULL, CFARGS_NONE);
        return 0;



Home | Main Index | Thread Index | Old Index