From: Namhyung Kim Date: Wed, 20 May 2015 16:03:40 +0000 (+0900) Subject: perf tools: Get rid of dso__data_fd() from dso__data_size() X-Git-Tag: v4.14-rc1~5252^2~20^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e840238d7c6afcde0f6402aac3a74723ee9c448f;p=platform%2Fkernel%2Flinux-rpi.git perf tools: Get rid of dso__data_fd() from dso__data_size() It seems that the dso__data_fd() was needed to find a binary type since open in data_file_size() alone used to fail. But as it can open the dso fine now, the dso__data_fd() can go away. Signed-off-by: Namhyung Kim Acked-by: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1432137821-10853-2-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c index 516e0c2..e95e850 100644 --- a/tools/perf/util/dso.c +++ b/tools/perf/util/dso.c @@ -745,12 +745,6 @@ out: */ off_t dso__data_size(struct dso *dso, struct machine *machine) { - int fd; - - fd = dso__data_fd(dso, machine); - if (fd < 0) - return fd; - if (data_file_size(dso, machine)) return -1;