Skip to content

Commit 1061ffb

Browse files
committed
tree: do not return error when filtering out subsystems
The filter is set by the caller, and just modifies the tree. It does not invalidate the scanning, so we shouldn't return an error. Signed-off-by: Hannes Reinecke <[email protected]>
1 parent 4308f42 commit 1061ffb

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/nvme/tree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,6 @@ static int nvme_scan_subsystem(struct nvme_root *r, const char *name,
562562
if (f && !f(s)) {
563563
nvme_msg(r, LOG_DEBUG, "filter out subsystem %s\n", name);
564564
__nvme_free_subsystem(s);
565-
return -1;
566565
}
567566

568567
return 0;

0 commit comments

Comments
 (0)