Skip to content

Commit 3bd0b5b

Browse files
Villemoestytso
authored andcommitted
drivers/char/random.c: remove unused stuct poolinfo::poolbits
This field is never used, might as well remove it. Signed-off-by: Rasmus Villemoes <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 26e0854 commit 3bd0b5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/char/random.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
* To allow fractional bits to be tracked, the entropy_count field is
296296
* denominated in units of 1/8th bits.
297297
*
298-
* 2*(ENTROPY_SHIFT + log2(poolbits)) must <= 31, or the multiply in
298+
* 2*(ENTROPY_SHIFT + poolbitshift) must <= 31, or the multiply in
299299
* credit_entropy_bits() needs to be 64 bits wide.
300300
*/
301301
#define ENTROPY_SHIFT 3
@@ -360,8 +360,8 @@ static int random_write_wakeup_bits = 28 * OUTPUT_POOL_WORDS;
360360
* irreducible, which we have made here.
361361
*/
362362
static const struct poolinfo {
363-
int poolbitshift, poolwords, poolbytes, poolbits, poolfracbits;
364-
#define S(x) ilog2(x)+5, (x), (x)*4, (x)*32, (x) << (ENTROPY_SHIFT+5)
363+
int poolbitshift, poolwords, poolbytes, poolfracbits;
364+
#define S(x) ilog2(x)+5, (x), (x)*4, (x) << (ENTROPY_SHIFT+5)
365365
int tap1, tap2, tap3, tap4, tap5;
366366
} poolinfo_table[] = {
367367
/* was: x^128 + x^103 + x^76 + x^51 +x^25 + x + 1 */

0 commit comments

Comments
 (0)