common/memsize.c: Simplify RAM size detection
authorEddy Petrișor <eddy.petrisor@gmail.com>
Tue, 2 Feb 2016 20:15:28 +0000 (22:15 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Feb 2016 15:10:49 +0000 (10:10 -0500)
commit8e7cba048baae68ee0916a8f52b4304277328d5e
tree793b2b398d9a81aa9a8c800d3a332b4349d1aef7
parentab8dd5e6e66b9da31adaecdee473c8c962aaf837
common/memsize.c: Simplify RAM size detection

The case of memory of size 0 is not that different from a memory of any other
size, so we remove the duplicate code and treat the small differences when it
is the case.

Signed-off-by: Eddy Petrișor <eddy.petrisor@gmail.com>
common/memsize.c