]> asedeno.scripts.mit.edu Git - linux.git/commit
perf session: Get rid of file_size variable
authorJiri Olsa <jolsa@kernel.org>
Thu, 10 Jan 2019 10:12:57 +0000 (11:12 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 21 Jan 2019 18:15:57 +0000 (15:15 -0300)
commit4f5a473d79c755d2e325c9a8dab01804d5416923
tree4009ac07e924cb20bdbeb1f36a50ab9f4c05988b
parent7ba4da100261482afcb693a1b39e483c9c03aba2
perf session: Get rid of file_size variable

It's not needed and removing it makes the code a little simpler for the
upcoming changes.

It's safe to replace file_size with data_size, because the
perf_data__size() value is never smaller than data_offset + data_size.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190110101301.6196-3-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c