aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/random.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2018-11-02 07:04:46 -0400
committerTheodore Ts'o <tytso@mit.edu>2019-04-17 10:30:21 -0400
commit3bd0b5bf7dc3ea02070fcbcd682ecf628269e8ef (patch)
tree64d27c20c10a6dbdc880e7ca9f9d443d454455e9 /drivers/char/random.c
parent26e0854ab3310bbeef1ed404a2c87132fc91f8e1 (diff)
drivers/char/random.c: remove unused stuct poolinfo::poolbits
This field is never used, might as well remove it. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r--drivers/char/random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 8e329a0f859a..84212ed5d091 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -295,7 +295,7 @@
295 * To allow fractional bits to be tracked, the entropy_count field is 295 * To allow fractional bits to be tracked, the entropy_count field is
296 * denominated in units of 1/8th bits. 296 * denominated in units of 1/8th bits.
297 * 297 *
298 * 2*(ENTROPY_SHIFT + log2(poolbits)) must <= 31, or the multiply in 298 * 2*(ENTROPY_SHIFT + poolbitshift) must <= 31, or the multiply in
299 * credit_entropy_bits() needs to be 64 bits wide. 299 * credit_entropy_bits() needs to be 64 bits wide.
300 */ 300 */
301#define ENTROPY_SHIFT 3 301#define ENTROPY_SHIFT 3
@@ -360,8 +360,8 @@ static int random_write_wakeup_bits = 28 * OUTPUT_POOL_WORDS;
360 * irreducible, which we have made here. 360 * irreducible, which we have made here.
361 */ 361 */
362static const struct poolinfo { 362static const struct poolinfo {
363 int poolbitshift, poolwords, poolbytes, poolbits, poolfracbits; 363 int poolbitshift, poolwords, poolbytes, poolfracbits;
364#define S(x) ilog2(x)+5, (x), (x)*4, (x)*32, (x) << (ENTROPY_SHIFT+5) 364#define S(x) ilog2(x)+5, (x), (x)*4, (x) << (ENTROPY_SHIFT+5)
365 int tap1, tap2, tap3, tap4, tap5; 365 int tap1, tap2, tap3, tap4, tap5;
366} poolinfo_table[] = { 366} poolinfo_table[] = {
367 /* was: x^128 + x^103 + x^76 + x^51 +x^25 + x + 1 */ 367 /* was: x^128 + x^103 + x^76 + x^51 +x^25 + x + 1 */