Coverity report:
CID
1400680 (#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: ret = 0;.
Reported-by: Coverity (1400680) Structurally dead code
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/* Session not found by name */
printf("session not found after creation\n");
ret = -1;
- goto end;
} else {
/* Success */
ret = 0;
- goto end;
}
} else {
if (ret_code == LTTNG_ERR_EXIST_SESS) {
printf("(session already exists) ");
}
ret = -1;
- goto end;
}
- ret = 0;
-end:
+
session_unlock_list();
return ret;
}