Skip to content

Commit 0a47891

Browse files
calebsanderigaw
authored andcommitted
fabrics: remove unused _discover_from_json_config_file() argument
_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 <csander@purestorage.com> Fixes: b3b9963 ("fabrics: refactore discover from json config")
1 parent 03006b9 commit 0a47891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fabrics.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ static int discover_from_conf_file(nvme_root_t r, nvme_host_t h,
502502
return ret;
503503
}
504504

505-
static int _discover_from_json_config_file(nvme_root_t r, nvme_host_t h, nvme_subsystem_t s,
505+
static int _discover_from_json_config_file(nvme_root_t r, nvme_host_t h,
506506
nvme_ctrl_t c, const char *desc, bool connect,
507507
const struct nvme_fabrics_config *defcfg,
508508
nvme_print_flags_t flags,
@@ -612,7 +612,7 @@ static int discover_from_json_config_file(nvme_root_t r, const char *hostnqn,
612612

613613
nvme_subsystem_for_each_ctrl(s, c) {
614614
err = _discover_from_json_config_file(
615-
r, h, s, c, desc, connect, defcfg,
615+
r, h, c, desc, connect, defcfg,
616616
flags, force);
617617

618618
if (err) {

0 commit comments

Comments
 (0)