s390/setup: call memblock_reserve only for size > 0
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 27 Dec 2016 13:47:42 +0000 (14:47 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Jan 2017 06:27:53 +0000 (07:27 +0100)
commit7be5e359a7eaea6ebe761044f6994163f0dd8585
tree2c169f78af484b53c28314ee8f789833184a5b1f
parent5064cd35062be01cba4b3fa895bdbeb8a9759213
s390/setup: call memblock_reserve only for size > 0

reserve_initrd currently calls memblock_reserve even if the to be
reserved size is zero. Even though the memblock core code can handle
this correctly, it still yields confusing debug messages if
memblock debugging is enabled.
Therefore make sure to not call memblock_reserve with a size of zero.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c