From: Jonathan Rajotte Date: Fri, 20 Sep 2019 15:40:37 +0000 (-0400) Subject: Refactor: remove logically dead code X-Git-Tag: v2.11.0-rc4~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e170a371b81f0b5d1bddcf862982063f964b19b0;p=lttng-tools.git Refactor: remove logically dead code Fixes coverity #1400681 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/session-descriptor.c b/src/common/session-descriptor.c index 208eb46ff..713731c3e 100644 --- a/src/common/session-descriptor.c +++ b/src/common/session-descriptor.c @@ -550,14 +550,8 @@ lttng_session_descriptor_live_create( struct lttng_session_descriptor_live *descriptor; descriptor = _lttng_session_descriptor_live_create(name, live_timer_us); - if (!descriptor) { - goto error; - } return descriptor ? &descriptor->base : NULL; -error: - lttng_session_descriptor_destroy(descriptor ? &descriptor->base : NULL); - return NULL; } struct lttng_session_descriptor *