nvme: cleanup setting the disk name
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Apr 2021 10:46:46 +0000 (12:46 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Apr 2021 06:12:54 +0000 (08:12 +0200)
commit9953ab0c5ae722dabbfa89a82c0d30a261125da0
treeed1f91cb8606bee9a2e4c67ea30304b482f43c51
parent3089738868b665ecc25e7f36e004c073883c16a0
nvme: cleanup setting the disk name

Return false from nvme_set_disk_name and let the caller set the
non-multipath name instead of duplicating the naming information in two
places.  Also remove the pointless local variables for the disk name
and flags and the not needed ctrl argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Javier González <javier.gonz@samsung.com>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h