nvme: multipath: fix return value of nvme_available_path
[ Upstream commit e3105f54a51554fb1bbf19dcaf93c4411d2d6c8a ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b9c89c97d7
commit
ee5521176a
@@ -427,7 +427,7 @@ static bool nvme_available_path(struct nvme_ns_head *head)
|
|||||||
struct nvme_ns *ns;
|
struct nvme_ns *ns;
|
||||||
|
|
||||||
if (!test_bit(NVME_NSHEAD_DISK_LIVE, &head->flags))
|
if (!test_bit(NVME_NSHEAD_DISK_LIVE, &head->flags))
|
||||||
return NULL;
|
return false;
|
||||||
|
|
||||||
list_for_each_entry_srcu(ns, &head->list, siblings,
|
list_for_each_entry_srcu(ns, &head->list, siblings,
|
||||||
srcu_read_lock_held(&head->srcu)) {
|
srcu_read_lock_held(&head->srcu)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user