summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-09-21 08:14:05 -0700
committerTom Rini <trini@ti.com>2012-09-21 08:14:05 -0700
commit3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e (patch)
treedafc8e9507d8dcd408a87331eb5ccfb506709be9 /common
parent5fb29f3c48d26981b117b08286bc16ec99d4ca0b (diff)
downloadu-boot-imx-3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e.zip
u-boot-imx-3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e.tar.gz
u-boot-imx-3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e.tar.bz2
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>
Diffstat (limited to 'common')
-rw-r--r--common/memsize.c1
1 files changed, 0 insertions, 1 deletions
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 @@ long get_ram_size(long *base, long maxsize)
}
return (0);
}
- *addr = save[i];
for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
addr = base + cnt; /* pointer arith! */