nvme: add error handling support for add_disk()
authorLuis Chamberlain <mcgrof@kernel.org>
Mon, 30 Aug 2021 21:25:33 +0000 (14:25 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 6 Sep 2021 08:08:09 +0000 (10:08 +0200)
commitab3994f6efba95e0832dc9e68c088b2d7ae764b8
tree184c4aab04d26482cb9431b082fd7bcfbb95527c
parent041bd1a1fc737cd73b0b8a9f74909191a8acc9fe
nvme: 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>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c