]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Remove unused function decleration
authorDaniel Wagner <dwagner@suse.de>
Mon, 20 Dec 2021 10:51:37 +0000 (11:51 +0100)
committerDaniel Wagner <dwagner@suse.de>
Fri, 7 Jan 2022 16:37:40 +0000 (17:37 +0100)
There is no implementation for these functions and no user.
Remove it.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme-private.h
nvme.h

index 1fd4eb26daa8bae5c6c807c8c96e7b76e6ff9de2..17185fc5c84ad11d7c2cc17fe2765874d63dfda8 100644 (file)
@@ -63,7 +63,6 @@ int scan_subsystems(struct nvme_topology *t, const char *subsysnqn,
                    __u32 ns_instance, int nsid, char *dev_dir);
 void free_topology(struct nvme_topology *t);
 char *get_nvme_subsnqn(char *path);
-char *nvme_get_ctrl_attr(const char *path, const char *attr);
 
 int uuid_from_dmi(char *uuid);
 int uuid_from_systemd(char *uuid);
diff --git a/nvme.h b/nvme.h
index df43218c5f04775aa4667884df1682748b5f27b3..7869347787c474a33ccde6772ccd76283870192f 100644 (file)
--- a/nvme.h
+++ b/nvme.h
@@ -83,7 +83,6 @@ extern const char *output_format;
 enum nvme_print_flags validate_output_format(const char *format);
 int __id_ctrl(int argc, char **argv, struct command *cmd,
        struct plugin *plugin, void (*vs)(uint8_t *vs, struct json_object *root));
-char *nvme_char_from_block(char *block);
 
 extern int current_index;
 void *nvme_alloc(size_t len, bool *huge);