Fix a manual copy from the original diff for r333825

The 'else' was in the original diff.

Submitted by:	Breno Leitao
This commit is contained in:
Justin Hibbits 2018-05-19 03:47:28 +00:00
parent 876f3b9295
commit c07c77a311

View File

@ -352,7 +352,7 @@ ofw_mem_regions(struct mem_region *memp, int *memsz,
if (OF_getproplen(phandle, "linux,usable-memory") >= 0)
res = parse_ofw_memory(phandle, "linux,usable-memory",
&availp[asz]);
if (OF_getproplen(phandle, "available") >= 0)
else if (OF_getproplen(phandle, "available") >= 0)
res = parse_ofw_memory(phandle, "available",
&availp[asz]);
else