struct tracefile_array *tracefile_array_create(size_t count)
{
- struct tracefile_array *tfa = NULL;
+ struct tracefile_array *tfa = nullptr;
int i;
tfa = zmalloc<tracefile_array>();
free(tfa->tf);
}
free(tfa);
- return NULL;
+ return nullptr;
}
void tracefile_array_destroy(struct tracefile_array *tfa)
if (seq == -1ULL) {
return false;
}
- if (seq >= tfa->tf[file_index].seq_tail && seq <= tfa->tf[file_index].seq_head) {
- return true;
- } else {
- return false;
- }
+ return seq >= tfa->tf[file_index].seq_tail && seq <= tfa->tf[file_index].seq_head;
}