aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2013-03-27 11:00:07 -0300
committerArnaldo Carvalho de Melo <[email protected]>2013-04-01 12:22:48 -0300
commitb5ded713974f537a950e841b5c583f49c80266ff (patch)
tree3a1acf5c8ae44edba822137b3fda385500da7662
parent1c6763cb9962d6d83a8470934c20ed525ef62355 (diff)
perf tools: Convert needless static variable to local
Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/perf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c
index 31c9380cfa64..85e1aed95204 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;