perf symbols: Cleanup the code flow of dso__find_kallsyms
authorMasami Hiramatsu <mhiramat@kernel.org>
Sat, 28 May 2016 15:15:28 +0000 (00:15 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 May 2016 16:15:02 +0000 (13:15 -0300)
commit4e4b6c0668dcd907a36d281802beafa96c916548
tree48962d7e82838ec40cda6a5e72fbbaaa9df027a6
parent11870d714a1b744a0225e90b0b395346357defe9
perf symbols: Cleanup the code flow of dso__find_kallsyms

Cleanup the code flow of dso__find_kallsyms() to remove redundant
checking code and add some comment for readability.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160528151522.16098.43446.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c