From ec1c466fca0cb257282dc505ddb45450610531f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 29 Aug 2018 18:06:25 -0400 Subject: [PATCH] Cleanup: unused assignment of ret_code in ROTATE_CHANNEL MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/common/kernel-consumer/kernel-consumer.c | 1 - src/common/ust-consumer/ust-consumer.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index f1c38ccbf..87ade12fa 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -1151,7 +1151,6 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx, msg.u.rotate_channel.key, ctx); if (ret < 0) { ERR("Rotate ready streams failed"); - ret_code = LTTCOMM_CONSUMERD_CHAN_NOT_FOUND; } break; diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index 81c9e72fe..22efc3956 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -2005,7 +2005,6 @@ int lttng_ustconsumer_recv_cmd(struct lttng_consumer_local_data *ctx, msg.u.rotate_channel.key, ctx); if (ret < 0) { ERR("Rotate channel failed"); - ret_code = LTTCOMM_CONSUMERD_CHAN_NOT_FOUND; } break; } -- 2.34.1