perf map: Remove extra indirection from map__find()
authorEric Saint-Etienne <eric.saint.etienne@oracle.com>
Fri, 23 Nov 2018 10:42:39 +0000 (02:42 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Dec 2018 17:53:57 +0000 (14:53 -0300)
commitb18e088825883bcb8dc4c4a641494049cf8ccec3
tree3ea8af32953b85fc343ab2b29539936f43974c08
parentbc4da38a4789e7819fca4c7723ded0b86aea27c0
perf map: Remove extra indirection from map__find()

A double pointer is used in map__find() where a single pointer is enough
because the function doesn't affect the rbtree and the rbtree is locked.

Signed-off-by: Eric Saint-Etienne <eric.saint.etienne@oracle.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Eric Saint-Etienne <eric.saintetienne@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1542969759-24346-1-git-send-email-eric.saint.etienne@oracle.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.c