From: Jens Axboe Date: Sat, 2 Dec 2017 23:29:44 +0000 (-0700) Subject: steadystate: style cleanup X-Git-Tag: fio-3.3~21 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=af7fb4aa2835b82847701237783c9ebe8ec8239a steadystate: style cleanup Signed-off-by: Jens Axboe --- diff --git a/steadystate.c b/steadystate.c index d0abb47c..2017ca67 100644 --- a/steadystate.c +++ b/steadystate.c @@ -24,8 +24,8 @@ static void steadystate_alloc(struct thread_data *td) void steadystate_setup(void) { - int i, prev_groupid; struct thread_data *td, *prev_td; + int i, prev_groupid; if (!steadystate_enabled) return; @@ -47,17 +47,15 @@ void steadystate_setup(void) } if (prev_groupid != td->groupid) { - if (prev_td != NULL) { + if (prev_td) steadystate_alloc(prev_td); - } prev_groupid = td->groupid; } prev_td = td; } - if (prev_td != NULL && prev_td->o.group_reporting) { + if (prev_td && prev_td->o.group_reporting) steadystate_alloc(prev_td); - } } static bool steadystate_slope(uint64_t iops, uint64_t bw,