Minor fix return value
authorDavid Goulet <david.goulet@polymtl.ca>
Thu, 8 Dec 2011 17:23:06 +0000 (12:23 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Thu, 8 Dec 2011 17:23:06 +0000 (12:23 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/event.c

index c8274c6bcf8a9100aed41422ff9db96734c01cf9..6e247aa9139db8cf5fcabff7b55810886c47f719 100644 (file)
@@ -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);
This page took 0.026627 seconds and 4 git commands to generate.