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-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5ded713974f537a950e841b5c583f49c80266ff;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 31c9380cfa6..85e1aed9520 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;