X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=da287f5caf9c4a7658b30f4419cf1be7aebb66bb;hp=c22206952160c7bc6e477d4250feed230ed99000;hb=6d1fcf1c029c10dd79c3be0686b1fae567604406;hpb=8005f29ac9f079b844b3e6bb0261e19a76ccd4da diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index c22206952..da287f5ca 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -602,7 +602,6 @@ int cmd_list(int argc, const char **argv) if (!opt_kernel && !opt_userspace) { ret = list_sessions(NULL); if (ret < 0) { - ret = CMD_ERROR; goto end; } } @@ -624,7 +623,6 @@ int cmd_list(int argc, const char **argv) /* List session attributes */ ret = list_sessions(session_name); if (ret < 0) { - ret = CMD_ERROR; goto end; }