Clean-up: unused ret values in thread_manage_health
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jun 2016 08:38:43 +0000 (04:38 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Jun 2016 08:38:43 +0000 (04:38 -0400)
Reported by Coverity as:
CID 1243014 (#1 of 15): Unused value (UNUSED_VALUE)

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

index 25023ada36fa7e0735ca8cbde6bc7606d3bca6c7..916a2b76993edc96111365760077c4a5951cfeeb 100644 (file)
@@ -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;
                }
        }
This page took 0.029973 seconds and 4 git commands to generate.