Fix: lttng trace-clock needs to disable preemption
[lttng-modules.git] / lttng-abi.c
index bc0a0f6e4dd7516c09b280f1b4379c7972624166..3572e58ef8f64e948680c63d05cf1c23280d2821 100644 (file)
@@ -130,10 +130,6 @@ int lttng_abi_tracepoint_list(void)
        if (ret < 0)
                goto open_error;
        fd_install(file_fd, tracepoint_list_file);
-       if (file_fd < 0) {
-               ret = file_fd;
-               goto fd_error;
-       }
        return file_fd;
 
 open_error:
@@ -174,10 +170,6 @@ int lttng_abi_syscall_list(void)
        if (ret < 0)
                goto open_error;
        fd_install(file_fd, syscall_list_file);
-       if (file_fd < 0) {
-               ret = file_fd;
-               goto fd_error;
-       }
        return file_fd;
 
 open_error:
This page took 0.023724 seconds and 4 git commands to generate.