style: eliminate equality tests with true and false
[gem5.git] / src / cpu / inorder / resources / use_def.cc
index d25925b9bf51a1483e4c2cb2d1e6ad3ed92d4dc5..5a871d0d4c6591af236aeedef4b38905cad9cf72 100644 (file)
@@ -191,7 +191,7 @@ UseDefUnit::execute(int slot_idx)
     // If there is a non-speculative instruction
     // in the pipeline then stall instructions here
     // ---
-    if (*nonSpecInstActive[tid] == true && seq_num > *nonSpecSeqNum[tid]) {
+    if (*nonSpecInstActive[tid] && seq_num > *nonSpecSeqNum[tid]) {
         DPRINTF(InOrderUseDef, "[tid:%i]: [sn:%i] cannot execute because"
                 "there is non-speculative instruction [sn:%i] has not "
                 "graduated.\n", tid, seq_num, *nonSpecSeqNum[tid]);