diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-04 12:52:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-04 12:52:51 +0000 |
commit | 7552ed51f78ca1ad311228f76e90cf8c120ee2f6 (patch) | |
tree | dec5ce8e28f081567cb33c77a178bcac6dd76169 /plugins/intel | |
parent | Adding upstream version 2.5. (diff) | |
download | nvme-cli-upstream/2.6.tar.xz nvme-cli-upstream/2.6.zip |
Adding upstream version 2.6.upstream/2.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | plugins/intel/intel-nvme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/intel/intel-nvme.c b/plugins/intel/intel-nvme.c index e62c85d..3b2f973 100644 --- a/plugins/intel/intel-nvme.c +++ b/plugins/intel/intel-nvme.c @@ -1065,7 +1065,7 @@ static int get_lat_stats_log(int argc, char **argv, struct command *cmd, struct media_version[1] = (data[3] << 8) | data[2]; if (err) - goto close_fd; + goto close_dev; if (media_version[0] == 1000) { __u32 thresholds[OPTANE_V1000_BUCKET_LEN] = {0}; @@ -1088,7 +1088,7 @@ static int get_lat_stats_log(int argc, char **argv, struct command *cmd, struct if (err) { fprintf(stderr, "Quering thresholds failed. "); nvme_show_status(err); - goto close_fd; + goto close_dev; } /* Update bucket thresholds to be printed */ @@ -1124,7 +1124,7 @@ static int get_lat_stats_log(int argc, char **argv, struct command *cmd, struct sizeof(stats)); } -close_fd: +close_dev: dev_close(dev); return err; } |