Commit 2110a6bc authored by Irvin Cote's avatar Irvin Cote Committed by Keith Busch
Browse files

nvme-core: remove redundant check from nvme_init_ns_head



nvme_find_ns_head already checks that the list of namescpaces
in an already existing namespace head is not empty

Signed-off-by: default avatarIrvin Cote <irvincoteg@gmail.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 942e21c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3563,7 +3563,7 @@ static int nvme_init_ns_head(struct nvme_ns *ns, struct nvme_ns_info *info)
			goto out_put_ns_head;
		}

		if (!multipath && !list_empty(&head->list)) {
		if (!multipath) {
			dev_warn(ctrl->device,
				"Found shared namespace %d, but multipathing not supported.\n",
				info->nsid);