From 3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 21 Sep 2012 08:14:05 -0700 Subject: [PATCH] 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 --- common/memsize.c | 1 - 1 file changed, 1 deletion(-) 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! */ -- 2.39.5