From fb89d070c1d33c6d28ff724c73ea70b6a78a0709 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 8 Dec 2011 12:23:06 -0500 Subject: [PATCH] Minor fix return value Signed-off-by: David Goulet --- lttng-sessiond/event.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lttng-sessiond/event.c b/lttng-sessiond/event.c index c8274c6bc..6e247aa91 100644 --- a/lttng-sessiond/event.c +++ b/lttng-sessiond/event.c @@ -372,7 +372,6 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, int domain, if (uevent->enabled) { /* It's already enabled so everything is OK */ - ret = LTTCOMM_OK; goto end; } @@ -414,13 +413,11 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, int domain, rcu_read_unlock(); } - ret = LTTCOMM_OK; - -end: DBG("Event UST %s %s in channel %s", uevent->attr.name, to_create ? "created" : "enabled", uchan->name); - return ret; +end: + return LTTCOMM_OK; error: trace_ust_destroy_event(uevent); -- 2.34.1