perf util: No need to call read_trace_init() in tracing_data_header()
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 4 Jun 2013 05:20:30 +0000 (14:20 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jul 2013 16:52:31 +0000 (13:52 -0300)
It's useless to call the read_trace_init() function at this time as we
don't need a returned pevent and it makes me confusing. :)

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1370323231-14022-16-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/trace-event-info.c

index a800f2b8ccfc24f51457414ed12eb7eabcf7034c..f3c9e551bd353f39cd68bf52ec4c1c4ea6892a2f 100644 (file)
@@ -476,8 +476,6 @@ static int tracing_data_header(void)
        else
                buf[0] = 0;
 
-       read_trace_init(buf[0], buf[0]);
-
        if (write(output_fd, buf, 1) != 1)
                return -1;