Skip to content

Commit

Permalink
fabrics: remove unused _discover_from_json_config_file() argument
Browse files Browse the repository at this point in the history
_discover_from_json_config_file() takes a nvme_subsystem_t argument
but doesn't use it.
Drop the unnecessary argument.

Signed-off-by: Caleb Sander Mateos <[email protected]>
Fixes: b3b9963 ("fabrics: refactore discover from json config")
  • Loading branch information
calebsander authored and igaw committed Jul 17, 2024
1 parent 03006b9 commit 0a47891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fabrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ static int discover_from_conf_file(nvme_root_t r, nvme_host_t h,
return ret;
}

static int _discover_from_json_config_file(nvme_root_t r, nvme_host_t h, nvme_subsystem_t s,
static int _discover_from_json_config_file(nvme_root_t r, nvme_host_t h,
nvme_ctrl_t c, const char *desc, bool connect,
const struct nvme_fabrics_config *defcfg,
nvme_print_flags_t flags,
Expand Down Expand Up @@ -612,7 +612,7 @@ static int discover_from_json_config_file(nvme_root_t r, const char *hostnqn,

nvme_subsystem_for_each_ctrl(s, c) {
err = _discover_from_json_config_file(
r, h, s, c, desc, connect, defcfg,
r, h, c, desc, connect, defcfg,
flags, force);

if (err) {
Expand Down

0 comments on commit 0a47891

Please sign in to comment.