[PATCH] nvme: make nvme_add_ns{_head}_cdev return void

Hannes Reinecke hare at suse.de
Wed Jun 10 04:33:38 PDT 2026


On 6/10/26 13:16, John Garry wrote:
> 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.
> 
> Signed-off-by: John Garry <john.g.garry at oracle.com>
> 
Reviewed-by: Hannes Reinecke <hare at kernel.org>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list