perf util: No need to call read_trace_init() in tracing_data_header()
authorNamhyung Kim <[email protected]>
Tue, 4 Jun 2013 05:20:30 +0000 (14:20 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
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 <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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;