io_u: we don't need to set power_2 to false
authorJens Axboe <axboe@fb.com>
Fri, 17 Mar 2017 16:33:37 +0000 (10:33 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 17 Mar 2017 16:33:37 +0000 (10:33 -0600)
We always set it before checking, no need for initializing it.

Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index ab0f138313cddad030e7b0747febedf6777ca2c5..5f01c1b674ebecd8612c9681411dc9773dd5a493 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -533,7 +533,7 @@ static unsigned int __get_next_buflen(struct thread_data *td, struct io_u *io_u,
        unsigned int buflen = 0;
        unsigned int minbs, maxbs;
        uint64_t frand_max, r;
-       bool power_2 = false;
+       bool power_2;
 
        assert(ddir_rw(ddir));