diff options
author | Uday Shankar <ushankar@purestorage.com> | 2025-04-04 14:06:43 -0600 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2025-04-08 07:07:18 +0200 |
commit | e3105f54a51554fb1bbf19dcaf93c4411d2d6c8a (patch) | |
tree | faea1f73a52763e6d04851c7b3a5618006203b3b | |
parent | 62baf70c327444338c34703c71aa8cc8e4189bd6 (diff) |
nvme: multipath: fix return value of nvme_available_path
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>
-rw-r--r-- | drivers/nvme/host/multipath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c index 6b12ca80aa27..94152cf423f1 100644 --- a/drivers/nvme/host/multipath.c +++ b/drivers/nvme/host/multipath.c @@ -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)) { |