From: Jérémie Galarneau Date: Wed, 29 Aug 2018 22:06:25 +0000 (-0400) Subject: Cleanup: unused assignment of ret_code in ROTATE_CHANNEL X-Git-Tag: v2.11.0-rc1~28 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ec1c466fca0cb257282dc505ddb45450610531f3;p=lttng-tools.git Cleanup: unused assignment of ret_code in ROTATE_CHANNEL Signed-off-by: Jérémie Galarneau --- 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; }