From: Jérémie Galarneau Date: Thu, 2 Jun 2016 08:18:36 +0000 (-0400) Subject: Clean-up: remove dead code in sessiond's set_option() X-Git-Tag: v2.9.0-rc1~147 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a5f0d7f3a5d8083ea0c313e1b17c935077b69b62;p=lttng-tools.git Clean-up: remove dead code in sessiond's set_option() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 83eb01673..25023ada3 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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])) {