Fix: Unreachable error logging in set_option()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Nov 2014 21:20:21 +0000 (16:20 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Nov 2014 18:00:17 +0000 (13:00 -0500)
*** CID 1256136:  Logically dead code  (DEADCODE)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index e69ae0d45d76b235fa2634998d38c0e980655605..ac1435b3e836d06fb2add983b78d30919f89f317 100644 (file)
@@ -4458,6 +4458,7 @@ static int set_option(int opt, const char *arg, const char *optname)
                ret = -1;
        }
 
+end:
        if (ret == -EINVAL) {
                const char *opt_name = "unknown";
                int i;
@@ -4473,7 +4474,7 @@ static int set_option(int opt, const char *arg, const char *optname)
                WARN("Invalid argument provided for option \"%s\", using default value.",
                        opt_name);
        }
-end:
+
        return ret;
 }
 
This page took 0.038056 seconds and 4 git commands to generate.