s390/block/dcssblk: add error handling support for add_disk()
authorGerald Schaefer <gerald.schaefer@linux.ibm.com>
Mon, 27 Sep 2021 22:02:31 +0000 (15:02 -0700)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 4 Oct 2021 07:49:37 +0000 (09:49 +0200)
commit1a5db707c859a4f63c1066c5b88864d3f1c21c12
treeb6fca2558c7da03b4cb047b9fbf9fb7e9ebd9349
parent11dfe199eb31079a6f2517a59c380ad55f156696
s390/block/dcssblk: add error handling support for add_disk()

We never checked for errors on add_disk() as this function
returned void. Now that this is fixed, use the shiny new
error handling.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Link: https://lore.kernel.org/r/20210927220232.1071926-6-mcgrof@kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/block/dcssblk.c