From 2533147721f2eff41b3c0e1fd2964c55054bcdd8 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 25 Jul 2017 14:07:30 -0400 Subject: [PATCH] Cleanup: remove dead assignment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ret is always overwritten hence assign a value here is not necessary. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/common/runas.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.34.1