Skip to content

Commit 2110a6b

Browse files
i-cotekeithbusch
authored andcommitted
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: Irvin Cote <irvincoteg@gmail.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 942e21c commit 2110a6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3563,7 +3563,7 @@ static int nvme_init_ns_head(struct nvme_ns *ns, struct nvme_ns_info *info)
35633563
goto out_put_ns_head;
35643564
}
35653565

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

0 commit comments

Comments
 (0)