perf events: Tidy up perf_event__preprocess_sample
authorNamhyung Kim <namhyung@gmail.com>
Mon, 12 Dec 2011 15:16:55 +0000 (00:16 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Dec 2011 15:50:59 +0000 (13:50 -0200)
commitcb8f4e9aa37c469ddd80dda51469f327606c0118
tree89dd395f7d6008a354fa30d1037628c1d815415a
parent5f9273d64a5ccbd3c2b4446cc8b71123ed5d6366
perf events: Tidy up perf_event__preprocess_sample

Use local variable 'dso' to reduce typing a bit and rearrange the if
condition. Also NULL check of al->map in the condition is not necessary.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1323703017-6060-7-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c