]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
remove nvme_intel_smart_log
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Mar 2017 23:10:53 +0000 (17:10 -0600)
committerKeith Busch <keith.busch@intel.com>
Tue, 14 Mar 2017 15:01:28 +0000 (11:01 -0400)
and just inline it into the only caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
intel-nvme.c
nvme-ioctl.c
nvme-ioctl.h

index dc1347501fe659bafa272bbf446f7c3945ed6b80..344611556c0576bc76d39d0d3039cdd533688d3e 100644 (file)
@@ -123,7 +123,8 @@ static int get_additional_smart_log(int argc, char **argv, struct command *cmd,
 
        fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
 
-       err = nvme_intel_smart_log(fd, cfg.namespace_id, &smart_log);
+       err = nvme_get_log(fd, cfg.namespace_id, 0xca, sizeof(smart_log),
+                       &smart_log);
        if (!err) {
                if (!cfg.raw_binary)
                        show_intel_smart_log(&smart_log, cfg.namespace_id, devicename);
index b74cdc8e18a6acaa9439c9c6222f3e3d0b9292be..a22399ab61699e89fe3cfe019299eacd157a1bee 100644 (file)
@@ -397,13 +397,6 @@ int nvme_smart_log(int fd, __u32 nsid, struct nvme_smart_log *smart_log)
        return nvme_get_log(fd, nsid, NVME_LOG_SMART, sizeof(*smart_log), smart_log);
 }
 
-int nvme_intel_smart_log(int fd, __u32 nsid,
-                        struct nvme_additional_smart_log *intel_smart_log)
-{
-       return nvme_get_log(fd, nsid, 0xca, sizeof(*intel_smart_log),
-                       intel_smart_log);
-}
-
 int nvme_discovery_log(int fd, struct nvmf_disc_rsp_page_hdr *log, __u32 size)
 {
        return nvme_get_log(fd, 0, NVME_LOG_DISC, size, log);
index 434b29e54cacbc195669b15f02b8ec20da96d149..3beddf8e2db2b992185ce8631554a7645ee650df 100644 (file)
@@ -83,8 +83,6 @@ int nvme_fw_log(int fd, struct nvme_firmware_log_page *fw_log);
 int nvme_error_log(int fd, __u32 nsid, int entries,
                   struct nvme_error_log_page *err_log);
 int nvme_smart_log(int fd, __u32 nsid, struct nvme_smart_log *smart_log);
-int nvme_intel_smart_log(int fd, __u32 nsid,
-                        struct nvme_additional_smart_log *intel_smart_log);
 int nvme_discovery_log(int fd, struct nvmf_disc_rsp_page_hdr *log, __u32 size);
 
 int nvme_feature(int fd, __u8 opcode, __u32 nsid, __u32 cdw10,