Skip to content
Commit 83b863f4 authored by Luis Chamberlain's avatar Luis Chamberlain Committed by Jens Axboe
Browse files

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211015233028.2167651-10-mcgrof@kernel.org
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2e9e31be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment