image: fix getenv_bootm_size() function
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 18 Dec 2015 05:17:10 +0000 (14:17 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 19 Jan 2016 13:31:11 +0000 (08:31 -0500)
commit9c11135ce053904f4caadc27760f214425d9881a
tree4b7438849a5c2d3080286bcae84d84d5f00042b0
parentb57843e68804c2d53d2cff2b8b2238e37b388faa
image: fix getenv_bootm_size() function

Currently, this function returns wrong size if "bootm_low" is defined,
but "bootm_size" is not.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image.c