s390/sclp_early: Return correct HSA block count also for zero
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Mon, 24 Feb 2014 13:30:00 +0000 (14:30 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 24 Feb 2014 16:13:57 +0000 (17:13 +0100)
commit9499934f70deac0cdb96aa2d90f2a0a2de69d80c
tree99c6c2ed6f42c4f463a2c97d985c859c3803207e
parent322986ca64d170abb343763640763f3d7933bb69
s390/sclp_early: Return correct HSA block count also for zero

Currently we return a negative block count if SCLP returns HSA block
count zero. The reason is that we subtract one for the header page.

So fix this and correctly return zero block count if SCLP returns zero.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp_early.c