From 3a03f0cf8005221d90045bed762e7d5e38f944fb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 2 Nov 2017 09:00:04 -0600 Subject: [PATCH] filesetup: __init_rand_distribution() can be void It can no longer fail, just make it void. Signed-off-by: Jens Axboe --- filesetup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/filesetup.c b/filesetup.c index 0437a776..2cc7158e 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1190,7 +1190,7 @@ bool pre_read_files(struct thread_data *td) return true; } -static int __init_rand_distribution(struct thread_data *td, struct fio_file *f) +static void __init_rand_distribution(struct thread_data *td, struct fio_file *f) { unsigned int range_size, seed; unsigned long nranges; @@ -1211,8 +1211,6 @@ static int __init_rand_distribution(struct thread_data *td, struct fio_file *f) pareto_init(&f->zipf, nranges, td->o.pareto_h.u.f, seed); else if (td->o.random_distribution == FIO_RAND_DIST_GAUSS) gauss_init(&f->gauss, nranges, td->o.gauss_dev.u.f, seed); - - return 1; } static int init_rand_distribution(struct thread_data *td) -- 2.25.1