projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6b2353c
)
lib/rand: get rid of unused MAX_SEED_BUCKETS
author
Jens Axboe
<axboe@kernel.dk>
Wed, 10 Aug 2022 15:51:49 +0000
(09:51 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 10 Aug 2022 15:51:49 +0000
(09:51 -0600)
It's only used to size the array, we don't need it.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/rand.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/rand.c
b/lib/rand.c
index 1ce4a84930b4268b89f551477dc0bd606de9ee08..0e787a62bad152568eee08824abf723716fec040 100644
(file)
--- a/
lib/rand.c
+++ b/
lib/rand.c
@@
-112,12
+112,8
@@
void __fill_random_buf_small(void *buf, unsigned int len, uint64_t seed)
void __fill_random_buf(void *buf, unsigned int len, uint64_t seed)
{
-#define MAX_SEED_BUCKETS 16
- static uint64_t prime[MAX_SEED_BUCKETS] = {1, 2, 3, 5,
- 7, 11, 13, 17,
- 19, 23, 29, 31,
- 37, 41, 43, 47};
-
+ static uint64_t prime[] = {1, 2, 3, 5, 7, 11, 13, 17,
+ 19, 23, 29, 31, 37, 41, 43, 47};
uint64_t *b, *e, s[CONFIG_SEED_BUCKETS];
unsigned int rest;
int p;