Fix: Add granularity to RHEL kernel version checks
[lttng-modules.git] / lttng-syscalls.c
index 4d8490e97889dcb3ed5463d34f806a899bf378c1..5fa66660b5f2532d715e80d90fb7c8feb6ec08ca 100644 (file)
@@ -77,6 +77,7 @@ struct oldold_utsname;
 struct old_utsname;
 struct sel_arg_struct;
 struct mmap_arg_struct;
+struct file_handle;
 
 #ifdef IA32_NR_syscalls
 #define NR_compat_syscalls IA32_NR_syscalls
@@ -1289,10 +1290,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.0248 seconds and 4 git commands to generate.