init: remove dead code
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Nov 2017 21:02:11 +0000 (14:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Nov 2017 21:02:11 +0000 (14:02 -0700)
We know did_arg == 0 here, so kill the other part.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c

diff --git a/init.c b/init.c
index b732bc9..c70f6a0 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2870,13 +2870,8 @@ int parse_options(int argc, char *argv[])
                        return 0;
 
                log_err("No job(s) defined\n\n");
-
-               if (!did_arg) {
-                       usage(argv[0]);
-                       return 1;
-               }
-
-               return 0;
+               usage(argv[0]);
+               return 1;
        }
 
        if (output_format & FIO_OUTPUT_NORMAL)