From: Jonathan Rajotte Date: Tue, 25 Jul 2017 20:29:53 +0000 (-0400) Subject: Cleanup: remove dead assignment X-Git-Tag: v2.10.0~28 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=f3fd2b6190a7b4a90de780bbc50dcb2fa55504d3;p=lttng-tools.git Cleanup: remove dead assignment ret is not used when jumping to error_no_alloc. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/stream.c b/src/bin/lttng-relayd/stream.c index e9c7ad172..e467cfa6c 100644 --- a/src/bin/lttng-relayd/stream.c +++ b/src/bin/lttng-relayd/stream.c @@ -86,7 +86,6 @@ struct relay_stream *stream_create(struct ctf_trace *trace, stream = zmalloc(sizeof(struct relay_stream)); if (stream == NULL) { PERROR("relay stream zmalloc"); - ret = -1; goto error_no_alloc; }