Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Omit needless `if (RND_ENABLED(...))' in rnd_skew_get.
details: https://anonhg.NetBSD.org/src/rev/d82dde6b8775
branches: trunk
changeset: 813992:d82dde6b8775
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Feb 28 20:37:16 2016 +0000
description:
Omit needless `if (RND_ENABLED(...))' in rnd_skew_get.
diffstat:
sys/kern/kern_rndq.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r 9f6633af1491 -r d82dde6b8775 sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c Sun Feb 28 20:36:08 2016 +0000
+++ b/sys/kern/kern_rndq.c Sun Feb 28 20:37:16 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndq.c,v 1.86 2016/02/28 20:36:08 riastradh Exp $ */
+/* $NetBSD: kern_rndq.c,v 1.87 2016/02/28 20:37:16 riastradh 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.86 2016/02/28 20:36:08 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.87 2016/02/28 20:37:16 riastradh Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -466,11 +466,10 @@
krndsource_t *skewsrcp = priv;
KASSERT(skewsrcp == &rnd_skew.source);
- if (RND_ENABLED(skewsrcp)) {
- /* Measure 100 times */
- rnd_skew.iter = 100;
- callout_schedule(&rnd_skew.callout, 1);
- }
+
+ /* Measure 100 times */
+ rnd_skew.iter = 100;
+ callout_schedule(&rnd_skew.callout, 1);
}
static void
Home |
Main Index |
Thread Index |
Old Index