Reduntant write bit checks
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index c76944568b25d4dbcf23a2e06d4758743544dda6..c39868dd95112a2dea7d3c497e08aeee39953d38 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -641,7 +641,7 @@ static int init_io_u(struct thread_data *td)
                INIT_LIST_HEAD(&io_u->list);
 
                io_u->buf = p + max_bs * i;
                INIT_LIST_HEAD(&io_u->list);
 
                io_u->buf = p + max_bs * i;
-               if (td_write(td) || td_rw(td))
+               if (td_write(td))
                        fill_rand_buf(io_u, max_bs);
 
                io_u->index = i;
                        fill_rand_buf(io_u, max_bs);
 
                io_u->index = i;