mtd: add add_disk() error handling
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Oct 2021 23:30:28 +0000 (16:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Oct 2021 15:00:56 +0000 (09:00 -0600)
commit83b863f4a3f0de4ece7802d9121fed0c3e64145f
tree99d9ac2e4116126be4c22b10d20eb6226c5604ee
parent2e9e31bea01997450397d64da43b6675e0adb9e3
mtd: add add_disk() error handling

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

Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211015233028.2167651-10-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mtd/mtd_blkdevs.c