From: Jérémie Galarneau Date: Thu, 2 Jun 2016 08:38:43 +0000 (-0400) Subject: Clean-up: unused ret values in thread_manage_health X-Git-Tag: v2.9.0-rc1~146 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ddcb67725554adb78976b818c445fff154ecd962;p=lttng-tools.git Clean-up: unused ret values in thread_manage_health Reported by Coverity as: CID 1243014 (#1 of 15): Unused value (UNUSED_VALUE) Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 25023ada3..916a2b769 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -4202,7 +4202,6 @@ static void *thread_manage_health(void *data) sock = lttcomm_create_unix_sock(health_unix_sock_path); if (sock < 0) { ERR("Unable to create health check Unix socket"); - ret = -1; goto error; } @@ -4213,7 +4212,6 @@ static void *thread_manage_health(void *data) if (ret < 0) { ERR("Unable to set group on %s", health_unix_sock_path); PERROR("chown"); - ret = -1; goto error; } @@ -4222,7 +4220,6 @@ static void *thread_manage_health(void *data) if (ret < 0) { ERR("Unable to set permissions on %s", health_unix_sock_path); PERROR("chmod"); - ret = -1; goto error; } }