From: David Goulet Date: Thu, 8 Dec 2011 17:23:06 +0000 (-0500) Subject: Minor fix return value X-Git-Tag: v2.0-pre15~17 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fb89d070c1d33c6d28ff724c73ea70b6a78a0709;p=lttng-tools.git Minor fix return value Signed-off-by: David Goulet --- 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);