projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove superflous domain check in add_uctx_to_channel
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
context.c
diff --git
a/src/bin/lttng-sessiond/context.c
b/src/bin/lttng-sessiond/context.c
index be15cebd20babb346618f1d23b2fbe3eb21f9671..941ab2535a0476d062b6de45820c430738f7f850 100644
(file)
--- a/
src/bin/lttng-sessiond/context.c
+++ b/
src/bin/lttng-sessiond/context.c
@@
-97,6
+97,7
@@
static int add_uctx_to_channel(struct ltt_ust_session *usess,
assert(usess);
assert(uchan);
assert(ctx);
assert(usess);
assert(uchan);
assert(ctx);
+ assert(domain == LTTNG_DOMAIN_UST);
/* Check if context is duplicate */
cds_list_for_each_entry(uctx, &uchan->ctx_list, list) {
/* Check if context is duplicate */
cds_list_for_each_entry(uctx, &uchan->ctx_list, list) {
@@
-113,15
+114,8
@@
static int add_uctx_to_channel(struct ltt_ust_session *usess,
goto error;
}
goto error;
}
- switch (domain) {
- case LTTNG_DOMAIN_UST:
- ret = ust_app_add_ctx_channel_glb(usess, uchan, uctx);
- if (ret < 0) {
- goto error;
- }
- break;
- default:
- ret = -ENOSYS;
+ ret = ust_app_add_ctx_channel_glb(usess, uchan, uctx);
+ if (ret < 0) {
goto error;
}
goto error;
}
This page took
0.023548 seconds
and
4
git commands to generate.