diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2016-07-15 19:02:31 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2016-07-15 19:02:31 +0000 |
commit | cb0b57aacc9a95c6893cf560e628a2a8fd3d9ac4 (patch) | |
tree | 43e24615a600bad0e150d1ecd7090df6cbc90f1f /sys/dev | |
parent | 10fad8d682c2124a01baafa0c1b7138ca4f2ed86 (diff) |
Remove unused re_nbits from dev/rnd.c
"another leftover of the bean counter"
od tedu@ deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/rnd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 83d14d8374f..1faa94d31f1 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.181 2016/05/23 15:48:59 deraadt Exp $ */ +/* $OpenBSD: rnd.c,v 1.182 2016/07/15 19:02:30 tom Exp $ */ /* * Copyright (c) 2011 Theo de Raadt. @@ -222,7 +222,6 @@ struct timer_rand_state { /* There is one of these per entropy source */ struct rand_event { struct timer_rand_state *re_state; - u_int re_nbits; u_int re_time; u_int re_val; } rnd_event_space[QEVLEN]; @@ -372,7 +371,6 @@ enqueue_randomness(u_int state, u_int val) rep = rnd_put(); rep->re_state = p; - rep->re_nbits = nbits; rep->re_time += ts.tv_nsec ^ (ts.tv_sec << 20); rep->re_val += val; @@ -441,7 +439,6 @@ dequeue_randomness(void *v) { struct rand_event *rep; u_int32_t buf[2]; - u_int nbits; mtx_enter(&entropylock); @@ -451,7 +448,6 @@ dequeue_randomness(void *v) while ((rep = rnd_get())) { buf[0] = rep->re_time; buf[1] = rep->re_val; - nbits = rep->re_nbits; mtx_leave(&entropylock); add_entropy_words(buf, 2); |