From: Harsh Prateek Bora Date: Fri, 20 Jul 2012 13:22:13 +0000 (+0530) Subject: trace: remove unnecessary write_to_buffer() typecasting X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~111^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83d35d3e9909614e952021a92dbb39421977affc;p=sdk%2Femulator%2Fqemu.git trace: remove unnecessary write_to_buffer() typecasting The buffer argument is void* so it is not necessary to cast. Signed-off-by: Harsh Prateek Bora Signed-off-by: Stefan Hajnoczi --- diff --git a/trace/simple.c b/trace/simple.c index 5d929399ca..a0e0f051d7 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -235,9 +235,9 @@ int trace_record_start(TraceBufferRecord *rec, TraceEventID event, size_t datasi rec->next_tbuf_idx = new_idx % TRACE_BUF_LEN; rec_off = idx; - rec_off = write_to_buffer(rec_off, (uint8_t*)&event, sizeof(event)); - rec_off = write_to_buffer(rec_off, (uint8_t*)×tamp_ns, sizeof(timestamp_ns)); - rec_off = write_to_buffer(rec_off, (uint8_t*)&rec_len, sizeof(rec_len)); + rec_off = write_to_buffer(rec_off, &event, sizeof(event)); + rec_off = write_to_buffer(rec_off, ×tamp_ns, sizeof(timestamp_ns)); + rec_off = write_to_buffer(rec_off, &rec_len, sizeof(rec_len)); rec->tbuf_idx = idx; rec->rec_off = (idx + sizeof(TraceRecord)) % TRACE_BUF_LEN;