diff --git a/trace/simple.c b/trace/simple.c index a0e0f051d7033667b0041fd7efbf6fe677e9de36..4fed07f33021e911e182b61ab7d342ebf7565b4d 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -231,8 +231,6 @@ int trace_record_start(TraceBufferRecord *rec, TraceEventID event, size_t datasi } idx = old_idx % TRACE_BUF_LEN; - /* To check later if threshold crossed */ - rec->next_tbuf_idx = new_idx % TRACE_BUF_LEN; rec_off = idx; rec_off = write_to_buffer(rec_off, &event, sizeof(event)); diff --git a/trace/simple.h b/trace/simple.h index 7e521c1e1fe75fa62a78cd0807d3f1b95338e5bf..2ab96a81479d5148d0b37daa112d5d191cfee2e6 100644 --- a/trace/simple.h +++ b/trace/simple.h @@ -29,7 +29,6 @@ void st_flush_trace_buffer(void); typedef struct { unsigned int tbuf_idx; - unsigned int next_tbuf_idx; unsigned int rec_off; } TraceBufferRecord;