projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Tests: test_session.c: Structurally dead code
[lttng-tools.git]
/
tests
/
unit
/
test_session.c
diff --git
a/tests/unit/test_session.c
b/tests/unit/test_session.c
index c7ad4ec71be3d70b87100be069bab9c328d1c445..b538bddc6bac261ca2a6615d065ebcce11b71126 100644
(file)
--- a/
tests/unit/test_session.c
+++ b/
tests/unit/test_session.c
@@
-141,21
+141,17
@@
static int create_one_session(char *name)
/* Session not found by name */
printf("session not found after creation\n");
ret = -1;
/* Session not found by name */
printf("session not found after creation\n");
ret = -1;
- goto end;
} else {
/* Success */
ret = 0;
} else {
/* Success */
ret = 0;
- goto end;
}
} else {
if (ret_code == LTTNG_ERR_EXIST_SESS) {
printf("(session already exists) ");
}
ret = -1;
}
} else {
if (ret_code == LTTNG_ERR_EXIST_SESS) {
printf("(session already exists) ");
}
ret = -1;
- goto end;
}
}
- ret = 0;
-end:
+
session_unlock_list();
return ret;
}
session_unlock_list();
return ret;
}
This page took
0.024159 seconds
and
5
git commands to generate.