Clean-up: remove dead code in sessiond's set_option()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jun 2016 08:18:36 +0000 (04:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jun 2016 08:19:25 +0000 (04:19 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 83eb01673336fb8af82333677fcdd22998276314..25023ada36fa7e0735ca8cbde6bc7606d3bca6c7 100644 (file)
@@ -4924,10 +4924,6 @@ static int set_option(int opt, const char *arg, const char *optname)
                } else {
                        unsigned long v;
 
-                       if (!arg) {
-                               ret = -EINVAL;
-                               goto end;
-                       }
                        errno = 0;
                        v = strtoul(arg, NULL, 0);
                        if (errno != 0 || !isdigit(arg[0])) {
This page took 0.028376 seconds and 4 git commands to generate.