diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/trace-event-info.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c index b0bbd76f4a56..783ab51e3ff7 100644 --- a/tools/perf/util/trace-event-info.c +++ b/tools/perf/util/trace-event-info.c | |||
@@ -119,17 +119,10 @@ static void put_tracing_file(char *file) | |||
119 | free(file); | 119 | free(file); |
120 | } | 120 | } |
121 | 121 | ||
122 | static ssize_t calc_data_size; | ||
123 | |||
124 | static ssize_t write_or_die(const void *buf, size_t len) | 122 | static ssize_t write_or_die(const void *buf, size_t len) |
125 | { | 123 | { |
126 | int ret; | 124 | int ret; |
127 | 125 | ||
128 | if (calc_data_size) { | ||
129 | calc_data_size += len; | ||
130 | return len; | ||
131 | } | ||
132 | |||
133 | ret = write(output_fd, buf, len); | 126 | ret = write(output_fd, buf, len); |
134 | if (ret < 0) | 127 | if (ret < 0) |
135 | die("writing to '%s'", output_file); | 128 | die("writing to '%s'", output_file); |