From: Simon Marchi Date: Wed, 31 Mar 2021 18:39:24 +0000 (-0400) Subject: Clean-up: consumer: fix -Wshadow error in lttng_consumer_trace_chunk_exists X-Git-Tag: v2.13.0-rc1~136 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3c215c837498a125ac4a981447368c30fbd92bb4;p=lttng-tools.git Clean-up: consumer: fix -Wshadow error in lttng_consumer_trace_chunk_exists We can safely re-use the ret variable. Change-Id: Icac6922acac8ca590c8f6b37df3fa07c90fd94dd Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index 20f4deb29..27a01bd7a 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -5043,8 +5043,6 @@ enum lttcomm_return_code lttng_consumer_trace_chunk_exists( bool chunk_exists_local, chunk_exists_remote; if (relayd_id) { - int ret; - /* Only used for logging purposes. */ ret = snprintf(relayd_id_buffer, sizeof(relayd_id_buffer), "%" PRIu64, *relayd_id);