X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Findex%2Findex.c;h=12d54e00639e353405ca9e23cd0b1f8ae5014dce;hb=661dfdd190c65bad5a044e21c1d5f9ad59144bf8;hp=ee73a0324c75467a7cd6706a6f9efa8b13b2659f;hpb=4a3a61c179ecf1338c71f0489c7a5a7d1bd41fe9;p=lttng-tools.git 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;