aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2015-05-20 12:03:40 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-27 11:21:44 -0400
commite840238d7c6afcde0f6402aac3a74723ee9c448f (patch)
tree3de844485ad819399a466da6616b20c8641e5af0
parent71ff824a60a7b0d9d0746e6e237fe4735077e5b4 (diff)
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 <namhyung@kernel.org> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1432137821-10853-2-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/dso.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/perf/util/dso.c b/tools/perf/util/dso.c
index 516e0c25ea16..e95e850dd832 100644
--- a/tools/perf/util/dso.c
+++ b/tools/perf/util/dso.c
@@ -745,12 +745,6 @@ out:
745 */ 745 */
746off_t dso__data_size(struct dso *dso, struct machine *machine) 746off_t dso__data_size(struct dso *dso, struct machine *machine)
747{ 747{
748 int fd;
749
750 fd = dso__data_fd(dso, machine);
751 if (fd < 0)
752 return fd;
753
754 if (data_file_size(dso, machine)) 748 if (data_file_size(dso, machine))
755 return -1; 749 return -1;
756 750