]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: make nvme_add_ns{_head}_cdev return void
authorJohn Garry <john.g.garry@oracle.com>
Wed, 10 Jun 2026 11:16:08 +0000 (11:16 +0000)
committerKeith Busch <kbusch@kernel.org>
Wed, 10 Jun 2026 14:33:00 +0000 (07:33 -0700)
commit869567bcbe2dcc790860e05fc0e0c5e415bb22c2
treecd86e71adbe74080e5f37575cf7aa04e24b29aa3
parentac48c49116d3de84fabc224c6e43f08740b1460d
nvme: make nvme_add_ns{_head}_cdev return void

The return code from nvme_add_ns_head_cdev() and nvme_add_ns_cdev() is
never checked, so make those functions return void.

A cdev add failure is tolerated during initialization, and flags
NVME_NS_CDEV_LIVE and NVME_NSHEAD_CDEV_LIVE are for determining whether
a cdev needs to be deleted during un-initialization.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c