Fix missing strncmp return value comparison
[lttng-tools.git] / src / bin / lttng / commands / list.c
index c22206952160c7bc6e477d4250feed230ed99000..da287f5caf9c4a7658b30f4419cf1be7aebb66bb 100644 (file)
@@ -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;
                }
 
This page took 0.031746 seconds and 4 git commands to generate.