]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: remove unused _discover_from_json_config_file() argument
authorCaleb Sander Mateos <csander@purestorage.com>
Wed, 17 Jul 2024 02:26:05 +0000 (20:26 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 17 Jul 2024 15:04:39 +0000 (17:04 +0200)
_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: b3b9963396c5 ("fabrics: refactore discover from json config")
fabrics.c

index f8136c4ab8b50f2e41a684c495e046eb6929f569..043a9b53d830b09cb38dd957ef47f329da4d325a 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -502,7 +502,7 @@ next:
        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,
@@ -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) {