]> www.infradead.org Git - nvme.git/commitdiff
nvme: multipath: fix return value of nvme_available_path
authorUday Shankar <ushankar@purestorage.com>
Fri, 4 Apr 2025 20:06:43 +0000 (14:06 -0600)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 05:07:18 +0000 (07:07 +0200)
The function returns bool so we should return false, not NULL. No
functional changes are expected.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c

index 6b12ca80aa27305a759990348c4c107655664d94..94152cf423f165aaba9cbb57f370ef4708365f1a 100644 (file)
@@ -427,7 +427,7 @@ static bool nvme_available_path(struct nvme_ns_head *head)
        struct nvme_ns *ns;
 
        if (!test_bit(NVME_NSHEAD_DISK_LIVE, &head->flags))
-               return NULL;
+               return false;
 
        list_for_each_entry_srcu(ns, &head->list, siblings,
                                 srcu_read_lock_held(&head->srcu)) {