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:
parent
c7cb334d14
commit
95099fee40
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user