From 0a20c4a200d8e304ed8d7892b01d727f25c2673d Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 25 Jul 2017 15:55:31 -0400 Subject: [PATCH] Cleanup: remove dead assignment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Artifact of refactor done in f8f3885cc52af9d3c951da78989d6f4a25270411 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/common/index/index.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/index/index.c b/src/common/index/index.c index ee73a0324..12d54e006 100644 --- a/src/common/index/index.c +++ b/src/common/index/index.c @@ -96,7 +96,6 @@ struct lttng_index_file *lttng_index_file_create(char *path_name, size_ret = lttng_write(fd, &hdr, sizeof(hdr)); if (size_ret < sizeof(hdr)) { PERROR("write index header"); - ret = -1; goto error; } index_file->fd = fd; -- 2.34.1