diff options
author | 2023-05-17 19:09:15 -0300 | |
---|---|---|
committer | 2023-06-12 10:36:59 -0700 | |
commit | 2110a6bcd7afd313ae10e9808878cd7c419c6b65 (patch) | |
tree | 8ef459546aa8055c8d78d7b4c37b509b955f09bd /drivers/nvme | |
parent | nvme: move sysfs code to a dedicated sysfs.c file (diff) | |
download | linux-2110a6bcd7afd313ae10e9808878cd7c419c6b65.tar.gz linux-2110a6bcd7afd313ae10e9808878cd7c419c6b65.tar.bz2 linux-2110a6bcd7afd313ae10e9808878cd7c419c6b65.zip |
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 43b906a59c8c..3263af1c2c15 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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); |