From: Keith Busch Date: Wed, 4 Apr 2018 14:14:26 +0000 (-0600) Subject: Remove error print for telemetry log arg parse X-Git-Tag: v1.6~57 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=03a90b5e4067938d4a0ff84636f536fd939edd86;p=users%2Fhch%2Fnvme-cli.git Remove error print for telemetry log arg parse 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 --- diff --git a/nvme.c b/nvme.c index 816ca85..97cc20d 100644 --- 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");