diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-01-15 14:52:59 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-01-19 12:14:02 +0100 |
commit | cd17e153af499c74d7e347c8ad7eab273f55f20b (patch) | |
tree | 3a6a3a539f5e8cb9794920cbe68eb9b4abb9224c /arch/s390/numa | |
parent | ef1f7fd7eba19eb64fc424355eb9d4e49ca06fb1 (diff) | |
download | linux-cd17e153af499c74d7e347c8ad7eab273f55f20b.tar.bz2 |
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>
Diffstat (limited to 'arch/s390/numa')
-rw-r--r-- | arch/s390/numa/numa.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/numa/numa.c b/arch/s390/numa/numa.c index b75ac43060e1..969b4ed4ed5e 100644 --- a/arch/s390/numa/numa.c +++ b/arch/s390/numa/numa.c @@ -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; } |