From: Jonathan Rajotte Date: Tue, 25 Jul 2017 18:11:02 +0000 (-0400) Subject: Cleanup: remove dead assignment X-Git-Tag: v2.11.0-rc1~487 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0bb92466b66b77a7cd8d8baea86db58666c3be21;p=lttng-tools.git Cleanup: remove dead assignment ret is overwritten no need to reset it. Signed-off-by: Jonathan Rajotte 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 bdd5ec86d..2c30bed29 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -1166,7 +1166,6 @@ static int get_index_values(struct ctf_packet_index *index, int infd) if (ret == -ENOTTY) { /* Command not implemented by lttng-modules. */ index->stream_instance_id = -1ULL; - ret = 0; } else { PERROR("kernctl_get_instance_id"); goto error; @@ -1238,7 +1237,6 @@ int update_stream_stats(struct lttng_consumer_stream *stream) if (ret == -ENOTTY) { /* Command not implemented by lttng-modules. */ seq = -1ULL; - ret = 0; } else { PERROR("kernctl_get_sequence_number"); goto end;