From: Jonathan Rajotte Date: Tue, 25 Jul 2017 18:01:48 +0000 (-0400) Subject: Cleanup: dead assignment X-Git-Tag: v2.10.0~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2f6e20e419fdff234936d0feb29ed86c6e788cbb;p=lttng-tools.git Cleanup: dead assignment ret is never used for error, use err instead. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-consumerd/health-consumerd.c b/src/bin/lttng-consumerd/health-consumerd.c index 2ea6303f7..1e2f31e48 100644 --- a/src/bin/lttng-consumerd/health-consumerd.c +++ b/src/bin/lttng-consumerd/health-consumerd.c @@ -177,7 +177,7 @@ 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; + err = -1; goto error; } @@ -189,7 +189,7 @@ void *thread_manage_health(void *data) if (ret < 0) { ERR("Unable to set group on %s", health_unix_sock_path); PERROR("chown"); - ret = -1; + err = -1; goto error; } @@ -198,7 +198,7 @@ void *thread_manage_health(void *data) if (ret < 0) { ERR("Unable to set permissions on %s", health_unix_sock_path); PERROR("chmod"); - ret = -1; + err = -1; goto error; } }