mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
8213609e68
commit
c50ae30341
1 changed files with 12 additions and 10 deletions
|
@ -3419,17 +3419,19 @@ static uint32_t mem_calibrate(void)
|
||||||
if (failing_groups != 0)
|
if (failing_groups != 0)
|
||||||
return 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 */
|
/* Calibrate the LFIFO */
|
||||||
if (!((STATIC_CALIB_STEPS) & CALIB_SKIP_LFIFO)) {
|
if (!rw_mgr_mem_calibrate_lfifo())
|
||||||
/*
|
return 0;
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue