From: Jonathan Rajotte Date: Tue, 25 Jul 2017 18:07:30 +0000 (-0400) Subject: Cleanup: remove dead assignment X-Git-Tag: v2.11.0-rc1~488 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=2533147721f2eff41b3c0e1fd2964c55054bcdd8 Cleanup: remove dead assignment ret is always overwritten hence assign a value here is not necessary. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/runas.c b/src/common/runas.c index 946ea3101..f753d2454 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -329,7 +329,6 @@ int run_as_worker(struct run_as_worker *worker) if (ret && ret != -ENOSYS) { /* Don't fail as this is not essential. */ PERROR("prctl PR_SET_NAME"); - ret = 0; } sendret.ret = 0;