common/memsize.c: Coding style cleanup

Prepare code to make later modifications checkpatch-clean.

Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
Wolfgang Denk 2014-10-21 22:14:10 +02:00 committed by Tom Rini
parent c7cb334d14
commit 95099fee40

View File

@ -49,8 +49,7 @@ long get_ram_size(long *base, long maxsize)
sync();
if ((val = *addr) != 0) {
/* Restore the original data before leaving the function.
*/
/* Restore the original data before leaving the function. */
sync();
*addr = save[i];
for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) {
@ -67,9 +66,13 @@ long get_ram_size(long *base, long maxsize)
*addr = save[--i];
if (val != ~cnt) {
size = cnt * sizeof(long);
/* Restore the original data before leaving the function.
/*
* Restore the original data
* before leaving the function.
*/
for (cnt <<= 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
for (cnt <<= 1;
cnt < maxsize / sizeof(long);
cnt <<= 1) {
addr = base + cnt;
*addr = save[--i];
}