From: Jérémie Galarneau Date: Tue, 18 Feb 2020 00:51:54 +0000 (-0500) Subject: Fix: trace-chunk: useless assignment to 'ret' X-Git-Tag: v2.12.0-rc2~59 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9a0e4a4e3c16203d3961f489b3b8bfd71012631f;p=lttng-tools.git Fix: trace-chunk: useless assignment to 'ret' '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 --- 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 {