]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Remove error print for telemetry log arg parse
authorKeith Busch <keith.busch@intel.com>
Wed, 4 Apr 2018 14:14:26 +0000 (08:14 -0600)
committerKeith Busch <keith.busch@intel.com>
Wed, 4 Apr 2018 14:14:26 +0000 (08:14 -0600)
We don't want to see an error message if the '--help' option was
utilized. Parsing errors are also already printed, so don't need the
second error message anyway.

Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 816ca858673e7a23b091bb50b313621352d37bce..97cc20dbb71fe6a948ace6775476ba5de968e4fd 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -258,10 +258,8 @@ static int get_telemetry_log(int argc, char **argv, struct command *cmd, struct
        };
 
        fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
-       if (fd < 0) {
-               fprintf(stderr, "parse and open failed\n");
+       if (fd < 0)
                return fd;
-       }
 
        if (!cfg.file_name) {
                fprintf(stderr, "Please provide an output file!\n");