summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/mem_detect.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/include/asm/mem_detect.h')
-rw-r--r--arch/s390/include/asm/mem_detect.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/s390/include/asm/mem_detect.h b/arch/s390/include/asm/mem_detect.h
index a7c922a69050..058ac2647eb7 100644
--- a/arch/s390/include/asm/mem_detect.h
+++ b/arch/s390/include/asm/mem_detect.h
@@ -40,11 +40,8 @@ void add_mem_detect_block(u64 start, u64 end);
static inline int __get_mem_detect_block(u32 n, unsigned long *start,
unsigned long *end)
{
- if (n >= mem_detect.count) {
- *start = 0;
- *end = 0;
+ if (n >= mem_detect.count)
return -1;
- }
if (n < MEM_INLINED_ENTRIES) {
*start = (unsigned long)mem_detect.entries[n].start;