From: Jonathan Rajotte Date: Wed, 26 Jul 2017 14:53:53 +0000 (-0400) Subject: Cleanup: useless reset of ret to zero X-Git-Tag: v2.11.0-rc1~474 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=4a171f3e17f4799d52e13d385f195fd459b8d008;hp=f0885867c00eda4544afb3f080dbfbacb9c88bcd Cleanup: useless reset of ret to zero ret is overwritten in the normal code flow. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-consumer.c b/src/bin/lttng-sessiond/ust-consumer.c index 43bf2616a..82fd0ea07 100644 --- a/src/bin/lttng-sessiond/ust-consumer.c +++ b/src/bin/lttng-sessiond/ust-consumer.c @@ -321,7 +321,6 @@ int ust_consumer_get_channel(struct consumer_socket *socket, free(stream); if (ret == -LTTNG_UST_ERR_NOENT) { DBG3("UST app consumer has no more stream available"); - ret = 0; break; } if (ret != -EPIPE) {