diff options
author | Marek Vasut <marex@denx.de> | 2015-07-17 02:40:21 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-08 14:14:16 +0200 |
commit | c50ae30341b002731c60bc385a1b29ac03251cc2 (patch) | |
tree | 30267a6b896e0fc6a2cc21908d26cfca00030dd6 /drivers/ddr | |
parent | 8213609e68e40bf5baf3d89d3378f24892f371d9 (diff) |
ddr: altera: Internal mem_calibrate() cleanup part 4
This is kind of microseries-within-series indent cleanup.
Rework the code for the last loop within the mega-loop
to make it actually readable and not an insane cryptic pile
of indent failure.
It is likely that this patch has checkpatch warnings, but
for the sake of not breaking the code, these are ignored.
No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/ddr')
-rw-r--r-- | drivers/ddr/altera/sequencer.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index 7384c169a0..5e3fec3e99 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -3419,17 +3419,19 @@ static uint32_t mem_calibrate(void) if (failing_groups != 0) return 0; + if (STATIC_CALIB_STEPS & CALIB_SKIP_LFIFO) + continue; + + /* + * If we're skipping groups as part of debug, + * don't calibrate LFIFO. + */ + if (param->skip_groups != 0) + continue; + /* Calibrate the LFIFO */ - if (!((STATIC_CALIB_STEPS) & CALIB_SKIP_LFIFO)) { - /* - * If we're skipping groups as part of debug, - * don't calibrate LFIFO. - */ - if (param->skip_groups == 0) { - if (!rw_mgr_mem_calibrate_lfifo()) - return 0; - } - } + if (!rw_mgr_mem_calibrate_lfifo()) + return 0; } /* |