aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/crash_dump.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-01-15 14:52:59 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-01-19 12:14:02 +0100
commitcd17e153af499c74d7e347c8ad7eab273f55f20b (patch)
tree3a6a3a539f5e8cb9794920cbe68eb9b4abb9224c /arch/s390/kernel/crash_dump.c
parents390/numa: allocate memory with correct alignment (diff)
downloadlinux-dev-cd17e153af499c74d7e347c8ad7eab273f55f20b.tar.xz
linux-dev-cd17e153af499c74d7e347c8ad7eab273f55f20b.zip
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/kernel/crash_dump.c')
-rw-r--r--arch/s390/kernel/crash_dump.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c
index a92b39fd0e63..3986c9f62191 100644
--- a/arch/s390/kernel/crash_dump.c
+++ b/arch/s390/kernel/crash_dump.c
@@ -59,8 +59,6 @@ struct save_area * __init save_area_alloc(bool is_boot_cpu)
struct save_area *sa;
sa = (void *) memblock_alloc(sizeof(*sa), 8);
- if (!sa)
- return NULL;
if (is_boot_cpu)
list_add(&sa->list, &dump_save_areas);
else