Clean-up: unused ret values in thread_manage_health
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 83eb01673336fb8af82333677fcdd22998276314..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;
                }
        }
@@ -4924,10 +4921,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.02568 seconds and 5 git commands to generate.