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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 942e21c commit 2110a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)