From: Namhyung Kim Date: Mon, 11 Mar 2013 07:43:14 +0000 (+0900) Subject: perf evlist: Add thread_map__nr() helper X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~119^2~16^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a319d528fd57ef600731ee1b84d00b7204881d;p=pandora-kernel.git perf evlist: Add thread_map__nr() helper Introduce and use the thread_map__nr() function to protect a possible NULL pointer dereference and cleanup the code a bit. Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1362987798-24969-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed