Skip to content

Commit 4888eaa

Browse files
committed
tree: remove unused default_host variable
There is no user for this, thus remove it. Signed-off-by: Daniel Wagner <[email protected]>
1 parent d05a242 commit 4888eaa

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

libnvme/src/nvme/tree.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ struct candidate_args {
6161
};
6262
typedef bool (*ctrl_match_t)(struct nvme_ctrl *c, struct candidate_args *candidate);
6363

64-
static struct nvme_host *default_host;
65-
6664
static void __nvme_free_host(nvme_host_t h);
6765
static void __nvme_free_ctrl(nvme_ctrl_t c);
6866
static int nvme_subsystem_scan_namespace(struct nvme_global_ctx *ctx,
@@ -211,7 +209,6 @@ int nvme_default_host(struct nvme_global_ctx *ctx, nvme_host_t *hp)
211209

212210
nvme_host_set_hostsymname(h, NULL);
213211

214-
default_host = h;
215212
*hp = h;
216213
return 0;
217214
}

0 commit comments

Comments
 (0)