From: Namhyung Kim Date: Tue, 5 Mar 2013 05:53:24 +0000 (+0900) Subject: perf annotate: Cleanup disasm__calc_percent() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~119^2~16^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd64fcb8805d8e4575f95f0df22f43b74418a4ec;p=pandora-kernel.git perf annotate: Cleanup disasm__calc_percent() The loop end condition is calculated from next disasm_line or the symbol size if it's the last disasm_line. But it doesn't need to be calculated at every iteration. Moving it out of the function can simplify code a bit. Also the src_line doesn't need to be checked in every time. Signed-off-by: Namhyung Kim Cc: Andi Kleen Cc: Ingo Molnar Cc: Jiri Olsa Cc: Paul Mackerras Cc: Pekka Enberg Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1362462812-30885-5-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed