]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee7768083ea2eaee62a99fcd8e95e610c86d2f57
treeed1f91cb8606bee9a2e4c67ea30304b482f43c51
parent794996ca6127959a68aaa02a80ffa455237c0108
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