s390: remove superfluous memblock_alloc() return value checks

memblock_alloc() and memblock_alloc_base() will panic on their own if
they can't find free memory. Therefore remove some pointless checks.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Heiko Carstens
2016-01-15 14:52:59 +01:00
committed by Martin Schwidefsky
szülő ef1f7fd7eb
commit cd17e153af
3 fájl változott, egészen pontosan 0 új sor hozzáadva és 6 régi sor törölve

Fájl megtekintése

@@ -58,8 +58,6 @@ static __init pg_data_t *alloc_node_data(void)
pg_data_t *res;
res = (pg_data_t *) memblock_alloc(sizeof(pg_data_t), 8);
if (!res)
panic("Could not allocate memory for node data!\n");
memset(res, 0, sizeof(pg_data_t));
return res;
}