X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=4178d87724eed3b774a7978e831a514d50b7b088;hb=7456615b6fee0905435303ebb5d7c330cd4d068c;hp=3c7cd5b4fd9f0c936a6e4b59504e7bfb724cc3a2;hpb=5e13eb3cd47abc717bb2e02dce5d26dc94281134;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 3c7cd5b4..4178d877 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -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: