From 258fbe9b0ff52ded4311ff8a94a9abfc079d1387 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 25 Jul 2017 14:05:17 -0400 Subject: [PATCH] Cleanup: remove dead assignment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ret is never used in error code path. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/common/pipe.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common/pipe.c b/src/common/pipe.c index 52ee08a97..4220a4089 100644 --- a/src/common/pipe.c +++ b/src/common/pipe.c @@ -227,7 +227,6 @@ struct lttng_pipe *lttng_pipe_named_open(const char *path, mode_t mode, fd_r = open(path, O_RDONLY | O_NONBLOCK); if (fd_r < 0) { PERROR("open fifo"); - ret = fd_r; goto error; } pipe->fd[0] = fd_r; @@ -236,7 +235,6 @@ struct lttng_pipe *lttng_pipe_named_open(const char *path, mode_t mode, fd_w = open(path, O_WRONLY | O_NONBLOCK); if (fd_w < 0) { PERROR("open fifo"); - ret = fd_w; goto error; } pipe->fd[1] = fd_w; -- 2.34.1