From: Mathieu Desnoyers Date: Fri, 4 Sep 2015 05:29:49 +0000 (-0400) Subject: Cleanup: remove logically dead code X-Git-Tag: v2.8.0-rc1~80 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=7456615b6fee0905435303ebb5d7c330cd4d068c Cleanup: remove logically dead code Signed-off-by: Mathieu Desnoyers --- 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: diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 36efea47..5fa66660 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -1290,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: