From: Jonathan Rajotte Date: Tue, 25 Jul 2017 19:55:31 +0000 (-0400) Subject: Cleanup: remove dead assignment X-Git-Tag: v2.11.0-rc1~485 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=0a20c4a200d8e304ed8d7892b01d727f25c2673d;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;