From: Jens Axboe Date: Thu, 2 Nov 2017 15:00:04 +0000 (-0600) Subject: filesetup: __init_rand_distribution() can be void X-Git-Tag: fio-3.2~10 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3a03f0cf8005221d90045bed762e7d5e38f944fb;p=fio.git filesetup: __init_rand_distribution() can be void It can no longer fail, just make it void. Signed-off-by: Jens Axboe --- 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)