]> git.sur5r.net Git - u-boot/commit
fdt_support: correct the return condition of fdt_initrd()
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Fri, 18 Apr 2014 08:41:05 +0000 (17:41 +0900)
committerTom Rini <trini@ti.com>
Thu, 19 Jun 2014 15:18:52 +0000 (11:18 -0400)
commit50babaf852e3b48680f7ea782a756043f64f8fe2
treeeb3ffab900ee19676838fe6b2c08886a3a618b07
parentf18295d3837c282f10167502e25a964abb04acf7
fdt_support: correct the return condition of fdt_initrd()

Before this commit, fdt_initrd() just returned if initrd
start address is zero.
But it is possible if the RAM is located at address 0.

This commit makes the return condition more reasonable:
Just return if the size of initrd is zero.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c