Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / src / bin / lttng-relayd / tracefile-array.cpp
index 07d5ee17f2f2c7a3f97eba57b4bfa76171569e45..91baa74aa9f6e0248db2e61ffd236e8069af63b0 100644 (file)
@@ -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<tracefile_array>();
@@ -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;
 }
This page took 0.022883 seconds and 4 git commands to generate.