X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Ftracefile-array.cpp;h=91baa74aa9f6e0248db2e61ffd236e8069af63b0;hb=f65ab3f72378bd72dd992688a21e3eb39330b2cd;hp=07d5ee17f2f2c7a3f97eba57b4bfa76171569e45;hpb=28ab034a2c3582d07d3423d2d746731f87d3969f;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/tracefile-array.cpp b/src/bin/lttng-relayd/tracefile-array.cpp index 07d5ee17f..91baa74aa 100644 --- a/src/bin/lttng-relayd/tracefile-array.cpp +++ b/src/bin/lttng-relayd/tracefile-array.cpp @@ -14,7 +14,7 @@ struct tracefile_array *tracefile_array_create(size_t count) { - struct tracefile_array *tfa = NULL; + struct tracefile_array *tfa = nullptr; int i; tfa = zmalloc(); @@ -39,7 +39,7 @@ error: free(tfa->tf); } free(tfa); - return NULL; + return nullptr; } void tracefile_array_destroy(struct tracefile_array *tfa) @@ -168,9 +168,5 @@ bool tracefile_array_seq_in_file(struct tracefile_array *tfa, uint64_t file_inde 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; }