ret is overwritten no need to reset it.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
if (ret == -ENOTTY) {
/* Command not implemented by lttng-modules. */
index->stream_instance_id = -1ULL;
if (ret == -ENOTTY) {
/* Command not implemented by lttng-modules. */
index->stream_instance_id = -1ULL;
} else {
PERROR("kernctl_get_instance_id");
goto error;
} else {
PERROR("kernctl_get_instance_id");
goto error;
if (ret == -ENOTTY) {
/* Command not implemented by lttng-modules. */
seq = -1ULL;
if (ret == -ENOTTY) {
/* Command not implemented by lttng-modules. */
seq = -1ULL;
} else {
PERROR("kernctl_get_sequence_number");
goto end;
} else {
PERROR("kernctl_get_sequence_number");
goto end;