Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Omit unused rndsource `anonymous'.
details: https://anonhg.NetBSD.org/src/rev/fab3837ee860
branches: trunk
changeset: 337428:fab3837ee860
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 14 12:35:44 2015 +0000
description:
Omit unused rndsource `anonymous'.
diffstat:
sys/kern/kern_rndq.c | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
diffs (50 lines):
diff -r 165af6e76108 -r fab3837ee860 sys/kern/kern_rndq.c
--- a/sys/kern/kern_rndq.c Tue Apr 14 12:33:53 2015 +0000
+++ b/sys/kern/kern_rndq.c Tue Apr 14 12:35:44 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndq.c,v 1.51 2015/04/14 12:33:53 riastradh Exp $ */
+/* $NetBSD: kern_rndq.c,v 1.52 2015/04/14 12:35:44 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.51 2015/04/14 12:33:53 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.52 2015/04/14 12:35:44 riastradh Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -149,20 +149,6 @@
.test = NULL
};
-static krndsource_t rnd_source_anonymous = {
- /* LIST_ENTRY list */
- .name = { 'A', 'n', 'o', 'n', 'y', 'm', 'o', 'u', 's',
- 0, 0, 0, 0, 0, 0, 0 },
- .total = 0,
- .type = RND_TYPE_UNKNOWN,
- .flags = (RND_FLAG_COLLECT_TIME|
- RND_FLAG_COLLECT_VALUE|
- RND_FLAG_ESTIMATE_TIME),
- .state = NULL,
- .test_cnt = 0,
- .test = NULL
-};
-
krndsource_t rnd_printf_source, rnd_autoconf_source;
void *rnd_process, *rnd_wakeup;
@@ -589,10 +575,6 @@
MIN(boot_rsp->entropy, RND_POOLBITS / 2));
memset(boot_rsp, 0, sizeof(*boot_rsp));
}
- rnd_attach_source(&rnd_source_anonymous, "Anonymous",
- RND_TYPE_UNKNOWN,
- RND_FLAG_COLLECT_TIME|RND_FLAG_COLLECT_VALUE|
- RND_FLAG_ESTIMATE_TIME);
rnd_attach_source(&rnd_printf_source, "printf", RND_TYPE_UNKNOWN,
RND_FLAG_NO_ESTIMATE);
rnd_attach_source(&rnd_autoconf_source, "autoconf",
Home |
Main Index |
Thread Index |
Old Index