From ad40ac1a08edd396a77a74ed13d14524946edeb8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 3 Dec 2013 17:41:16 +0100 Subject: [PATCH] Cleanup: remove index_read (unused var) Signed-off-by: Mathieu Desnoyers --- formats/ctf/ctf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index eec3350f..eef9f2ab 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1809,7 +1809,6 @@ int import_stream_packet_index(struct ctf_trace *td, struct ctf_packet_index ctf_index; struct ctf_packet_index_file_hdr index_hdr; struct packet_index index; - int index_read; int ret = 0; int first_packet = 1; size_t len; @@ -1843,8 +1842,8 @@ int import_stream_packet_index(struct ctf_trace *td, goto error; } - while ((index_read = fread(&ctf_index, index_hdr.packet_index_len, 1, - pos->index_fp)) == 1) { + while (fread(&ctf_index, index_hdr.packet_index_len, 1, + pos->index_fp) == 1) { uint64_t stream_id; memset(&index, 0, sizeof(index)); -- 2.34.1