ddir was feed with io_u->ddir at init time but didn't got used before
reassign it to the same value or another one.
That was making this init useless.
This patch simplify this portion of code by using the initialized
variable.
unsigned int minbs, maxbs;
unsigned long r, rand_max;
unsigned int minbs, maxbs;
unsigned long r, rand_max;
- assert(ddir_rw(io_u->ddir));
if (td->o.bs_is_seq_rand)
ddir = is_random ? DDIR_WRITE: DDIR_READ;
if (td->o.bs_is_seq_rand)
ddir = is_random ? DDIR_WRITE: DDIR_READ;
- else
- ddir = io_u->ddir;
minbs = td->o.min_bs[ddir];
maxbs = td->o.max_bs[ddir];
minbs = td->o.min_bs[ddir];
maxbs = td->o.max_bs[ddir];