Skip to content

Commit e3105f5

Browse files
ps-ushankarChristoph Hellwig
authored andcommitted
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 <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 62baf70 commit e3105f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/multipath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ static bool nvme_available_path(struct nvme_ns_head *head)
427427
struct nvme_ns *ns;
428428

429429
if (!test_bit(NVME_NSHEAD_DISK_LIVE, &head->flags))
430-
return NULL;
430+
return false;
431431

432432
list_for_each_entry_srcu(ns, &head->list, siblings,
433433
srcu_read_lock_held(&head->srcu)) {

0 commit comments

Comments
 (0)