summaryrefslogtreecommitdiffstats
path: root/plugins/fdp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:09:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:09:56 +0000
commit2822061d0e17d5acdbc46740b535021115f11071 (patch)
tree8c14f8690f3689562c5fd1d550e1883629ced2a8 /plugins/fdp
parentAdding upstream version 2.10.2. (diff)
downloadnvme-cli-upstream.tar.xz
nvme-cli-upstream.zip
Adding upstream version 2.11.upstream/2.11upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/fdp')
-rw-r--r--plugins/fdp/fdp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/fdp/fdp.c b/plugins/fdp/fdp.c
index 1efdd76..cac0b2b 100644
--- a/plugins/fdp/fdp.c
+++ b/plugins/fdp/fdp.c
@@ -57,7 +57,7 @@ static int fdp_configs(int argc, char **argv, struct command *cmd,
return err;
err = validate_output_format(cfg.output_format, &flags);
- if (flags < 0)
+ if (err < 0)
goto out;
if (cfg.raw_binary)
@@ -138,7 +138,7 @@ static int fdp_usage(int argc, char **argv, struct command *cmd, struct plugin *
return err;
err = validate_output_format(cfg.output_format, &flags);
- if (flags < 0)
+ if (err < 0)
goto out;
if (cfg.raw_binary)
@@ -209,7 +209,7 @@ static int fdp_stats(int argc, char **argv, struct command *cmd, struct plugin *
return err;
err = validate_output_format(cfg.output_format, &flags);
- if (flags < 0)
+ if (err < 0)
goto out;
if (cfg.raw_binary)
@@ -270,7 +270,7 @@ static int fdp_events(int argc, char **argv, struct command *cmd, struct plugin
return err;
err = validate_output_format(cfg.output_format, &flags);
- if (flags < 0)
+ if (err < 0)
goto out;
if (cfg.raw_binary)
@@ -329,7 +329,7 @@ static int fdp_status(int argc, char **argv, struct command *cmd, struct plugin
return err;
err = validate_output_format(cfg.output_format, &flags);
- if (flags < 0)
+ if (err < 0)
goto out;
if (cfg.raw_binary)