struct lttng_index_file *index_file;
enum lttng_trace_chunk_status chunk_status;
int ret;
- struct fs_handle *fs_handle = NULL;
+ struct fs_handle *fs_handle = nullptr;
ssize_t size_ret;
struct ctf_packet_index_file_hdr hdr;
char index_directory_path[LTTNG_PATH_MAX];
chunk_status = (lttng_trace_chunk_status) lttng_trace_chunk_unlink_file(
chunk, index_file_path);
if (chunk_status != LTTNG_TRACE_CHUNK_STATUS_OK &&
- !(chunk_status == LTTNG_TRACE_CHUNK_STATUS_ERROR && errno == ENOENT)) {
+ (chunk_status != LTTNG_TRACE_CHUNK_STATUS_ERROR || errno != ENOENT)) {
goto error;
}
}