]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
ddr: altera: Internal mem_calibrate() cleanup part 5
authorMarek Vasut <marex@denx.de>
Fri, 17 Jul 2015 00:50:56 +0000 (02:50 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:28 +0000 (08:17 +0200)
commita2f0a5dd6d64cc7d3c5b53f0cba6eab3d50e2427
tree8d229c86f29e542185fcddcd1d2cf5da179e3f3c
parent45398a4a09cada7a5856476c22a04d4691d99a4e
ddr: altera: Internal mem_calibrate() cleanup part 5

This is kind of microseries-within-series indent cleanup.
Rework the code for the the middle-loop of the mega-loop
this time and deal with the group_failed variable. Instead
of checking if the group failed in the previous calibration
part, just jump to the end of the loop if calibration did
fail and increment the counter. This shaves away one more
level of indent while making the code slightly more readable.

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>
drivers/ddr/altera/sequencer.c