From: Jonathan Rajotte Date: Tue, 25 Jul 2017 19:55:31 +0000 (-0400) Subject: Cleanup: remove dead assignment X-Git-Tag: v2.10.0~30 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=745ed82edb6504e209f610d9a5b383698cba9108;p=lttng-tools.git Cleanup: remove dead assignment Artifact of refactor done in f8f3885cc52af9d3c951da78989d6f4a25270411 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- 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;