m68k/emu/nfblock: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Oct 2021 23:30:25 +0000 (16:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Oct 2021 15:00:56 +0000 (09:00 -0600)
commit21fd880d3da7564bab68979417cab7408e4f9642
tree3715b93015ae13a69508f11e85136198463a2885
parent293a7c528803321479593d42d0898bb5a9769db1
m68k/emu/nfblock: 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.

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211015233028.2167651-7-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/m68k/emu/nfblock.c