Revert "memsize: Fix for bug in memory sizing code"
After further investigation this change is not correct and results in
get_ram_size returning incorrectly large values. Reported first by
Gerlando Falauto.
This reverts commit b8496cced856ff411f1eb2e4eff20f5abe7080b0.
Signed-off-by: Tom Rini <trini@ti.com>
diff --git a/common/memsize.c b/common/memsize.c
index 74cf075..963e4f3 100644
--- a/common/memsize.c
+++ b/common/memsize.c
@@ -73,7 +73,6 @@
}
return (0);
}
- *addr = save[i];
for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
addr = base + cnt; /* pointer arith! */