ps3disk: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Oct 2021 23:52:16 +0000 (16:52 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 30 Oct 2021 17:03:37 +0000 (11:03 -0600)
commitff4cbe0fcf5d749f76040f782f0618656cd23e33
tree8e76baa50b5e40f18cf6a5cc6428d7c0dd662dff
parent5e2e1cc4131cf4d21629c94331f2351b7dc8b87c
ps3disk: 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>
Tested-by: Geoff Levand <geoff@infradead.org>
Link: https://lore.kernel.org/r/20211015235219.2191207-11-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ps3disk.c