struct op *this_op;
bool done[num_files];
+ /* None left? We're sorted. */
+ if (off == num)
+ return true;
+
/* Does this make serial numbers go backwards? Allow a little fuzz. */
if (off > 0) {
int serial1 = op[res[off-1].file][res[off-1].op_num].serial;
}
}
- /* One or none left? We're sorted. */
- if (off + 1 >= num)
- return true;
-
memset(done, 0, sizeof(done));
/* Since ops within a trace file are ordered, we just need to figure