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 20:27:57 +0000 (15:27 -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 a3e08ec514170242db9ab67118c92fae2bea89fc..abe556c0d29aac0d1f4ea2a3a38a62e3dc7be4c5 100644 (file)
@@ -4425,6 +4425,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;
@@ -4440,7 +4441,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.027939 seconds and 4 git commands to generate.