From 3dde0a9310a828bb49caefad56a76833860668d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 17 Feb 2020 19:51:54 -0500 Subject: [PATCH] Fix: trace-chunk: useless assignment to 'ret' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 'ret' is not used to report error in lttng_trace_chunk_rename_path_no_lock(); status is used. Therefore, this assignment is useless. Signed-off-by: Jérémie Galarneau Change-Id: I1804d616a24c41d3956b021f90bb77d0e6efef1a --- src/common/trace-chunk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index ea952220b..7b60d9197 100644 --- a/src/common/trace-chunk.c +++ b/src/common/trace-chunk.c @@ -905,7 +905,6 @@ enum lttng_trace_chunk_status lttng_trace_chunk_rename_path_no_lock( if (status != LTTNG_TRACE_CHUNK_STATUS_OK) { ERR("Error removing subdirectory '%s' file when deleting chunk", old_path); - ret = -1; goto end; } } else { -- 2.34.1