Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Whitespace fixes. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/ee4c334d9078
branches:  trunk
changeset: 458538:ee4c334d9078
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jul 31 02:21:31 2019 +0000

description:
Whitespace fixes. No functional change.

diffstat:

 sys/kern/kern_rndq.c |  25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diffs (97 lines):

diff -r 2c8a55be82ae -r ee4c334d9078 sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c      Wed Jul 31 02:09:02 2019 +0000
+++ b/sys/kern/kern_rndq.c      Wed Jul 31 02:21:31 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_rndq.c,v 1.93 2019/03/01 11:06:57 pgoyette Exp $  */
+/*     $NetBSD: kern_rndq.c,v 1.94 2019/07/31 02:21:31 msaitoh Exp $   */
 
 /*-
  * Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.93 2019/03/01 11:06:57 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.94 2019/07/31 02:21:31 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -67,7 +67,7 @@
 #endif
 
 #ifdef RND_DEBUG
-#define        DPRINTF(l,x)      if (rnd_debug & (l)) rnd_printf x
+#define        DPRINTF(l,x)    if (rnd_debug & (l)) rnd_printf x
 int    rnd_debug = 0;
 #else
 #define        DPRINTF(l,x)
@@ -155,7 +155,7 @@
 static void *rnd_wakeup __read_mostly;
 
 static inline uint32_t rnd_counter(void);
-static        void     rnd_intr(void *);
+static       void      rnd_intr(void *);
 static       void      rnd_wake(void *);
 static       void      rnd_process_events(void);
 static       void      rnd_add_data_ts(krndsource_t *, const void *const,
@@ -617,7 +617,7 @@
         * If we have a cycle counter, take its error with respect
         * to the callout mechanism as a source of entropy, ala
         * TrueRand.
-        *
+        *
         */
 #if defined(__HAVE_CPU_COUNTER)
        /* IPL_VM because taken while rnd_global.lock is held.  */
@@ -840,10 +840,9 @@
                        entropy += dt_est;
                }
 
-                if (rs->flags & RND_FLAG_ESTIMATE_VALUE) {
+               if (rs->flags & RND_FLAG_ESTIMATE_VALUE) {
                        entropy += dv_est;
                }
-
        }
        return entropy;
 }
@@ -883,7 +882,7 @@
        uint32_t entropy = 0;
 
        if (rs->flags & RND_FLAG_NO_COLLECT)
-                return;
+               return;
 
        /*
         * Sample the counter as soon as possible to avoid
@@ -1414,9 +1413,9 @@
 
        memset(r, 0, sizeof(*r));
        strlcpy(r->name, kr->name, sizeof(r->name));
-        r->total = kr->total;
-        r->type = kr->type;
-        r->flags = kr->flags;
+       r->total = kr->total;
+       r->type = kr->type;
+       r->flags = kr->flags;
 }
 
 static void
@@ -1440,7 +1439,7 @@
        kr->flags |= (flags & mask);
 
        if (oflags & RND_FLAG_HASENABLE &&
-            ((oflags & RND_FLAG_NO_COLLECT) !=
+           ((oflags & RND_FLAG_NO_COLLECT) !=
                (flags & RND_FLAG_NO_COLLECT))) {
                kr->enable(kr, !(flags & RND_FLAG_NO_COLLECT));
        }
@@ -1634,7 +1633,7 @@
                }
                mutex_spin_exit(&rnd_global.lock);
 
-               ret = ENOENT;           /* name not found */
+               ret = ENOENT;           /* name not found */
 
                break;
 



Home | Main Index | Thread Index | Old Index