From: Harsh Prateek Bora Date: Fri, 20 Jul 2012 13:22:14 +0000 (+0530) Subject: trace: drop unused TraceBufferRecord->next_tbuf_idx field X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~111^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd82f015a1cc2df5972f06b75b350f65da68f9cf;p=sdk%2Femulator%2Fqemu.git trace: drop unused TraceBufferRecord->next_tbuf_idx field Signed-off-by: Harsh Prateek Bora Signed-off-by: Stefan Hajnoczi --- diff --git a/trace/simple.c b/trace/simple.c index a0e0f051d7..4fed07f330 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 7e521c1e1f..2ab96a8147 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;