From: Arnaldo Carvalho de Melo Date: Wed, 27 Mar 2013 14:00:07 +0000 (-0300) Subject: perf tools: Convert needless static variable to local X-Git-Tag: v3.10-rc1~174^2~15^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5ded713974f537a950e841b5c583f49c80266ff;p=platform%2Fkernel%2Flinux-exynos.git perf tools: Convert needless static variable to local Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-k85ajz97xbrd8fkt2a8pp7q1@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 31c9380..85e1aed 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -518,9 +518,8 @@ int main(int argc, const char **argv) while (1) { static int done_help; - static int was_alias; + int was_alias = run_argv(&argc, &argv); - was_alias = run_argv(&argc, &argv); if (errno != ENOENT) break;