diff options
author | Tom Rini <trini@ti.com> | 2012-09-21 08:14:05 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-21 08:14:05 -0700 |
commit | 3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e (patch) | |
tree | dafc8e9507d8dcd408a87331eb5ccfb506709be9 /common/memsize.c | |
parent | 5fb29f3c48d26981b117b08286bc16ec99d4ca0b (diff) | |
download | u-boot-3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e.tar.gz |
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/memsize.c')
-rw-r--r-- | common/memsize.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/common/memsize.c b/common/memsize.c index 74cf075aff..963e4f35b1 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! */ |